Addition of multiple characteristics to a BLE service
Posted: Thu Aug 31, 2017 9:57 pm
I am currently needing to implement a BLE GATT server with 128 bit server and characteristic UUID's and I am using the GATTS_DEMO provided. I have dug through the internals till the btc level and I have implemented almost everything but I cant seem to figure out how to add multiple characteristics to a service.
I have read that without using the attribute table one has to call the server creation->characteristic addition ->descriptor addition functions sequentially when using the Bluedroid method. Now to my question, where in the GATTS event handler am I supposed to write this sequentially? When I try adding the ( server creation->characteristic addition ->descriptor addition) after the ESP_GATTS_REG_EVT section I just get the following output:
I have read that without using the attribute table one has to call the server creation->characteristic addition ->descriptor addition functions sequentially when using the Bluedroid method. Now to my question, where in the GATTS event handler am I supposed to write this sequentially? When I try adding the ( server creation->characteristic addition ->descriptor addition) after the ESP_GATTS_REG_EVT section I just get the following output:
Code: Select all
I (599) GATTS_DEMO: REGISTER_APP_EVT, status 0, app_id 0
E (599) BT: service not created
E (599) BT: service not created
E (609) BT: service not created