1
0
forked from me/IronOS

Change to 128bit UUID's (#1608)

* Change to 128bit UUID's

* Make attrs const for BLE

* Forcefully set docker project name

* Cleaner UUIDS

* Cant use const attrs

* Adjust ram sections

* Update UUID decode

* Settings uuids

* Fix missed decoder for writing

---------

Co-authored-by: discip <53649486+discip@users.noreply.github.com>
This commit is contained in:
Ben V. Brown
2023-03-29 12:45:09 +11:00
committed by GitHub
parent f937c8d7bd
commit e13f118788
4 changed files with 83 additions and 80 deletions

View File

@@ -142,7 +142,7 @@ static void ble_tp_ind_ccc_changed(const struct bt_gatt_attr *attr, u16_t value)
/*************************************************************************
* DEFINE : attrs
*/
static struct bt_gatt_attr attrs[] = {
static struct bt_gatt_attr ble_attrs_declaration[] = {
BT_GATT_PRIMARY_SERVICE(BT_UUID_SVC_LIVE_DATA),
BT_GATT_CHARACTERISTIC(BT_UUID_CHAR_BLE_LIVE_LIVE_TEMP, BT_GATT_CHRC_READ, BT_GATT_PERM_READ, ble_char_read_status_callback, NULL, NULL),
@@ -257,9 +257,9 @@ static struct bt_gatt_attr attrs[] = {
NAME
get_attr
*/
struct bt_gatt_attr *get_attr(u8_t index) { return &attrs[index]; }
struct bt_gatt_attr *get_attr(u8_t index) { return &ble_attrs_declaration[index]; }
static struct bt_gatt_service ble_tp_server = BT_GATT_SERVICE(attrs);
static struct bt_gatt_service ble_tp_server = BT_GATT_SERVICE(ble_attrs_declaration);
// Start advertising with expected default values
int ble_start_adv(void) {