Part Number: CC2650
Other Parts Discussed in Thread: , CC2640R2F
Hello,
I've been working with the CC2650MODA, but I've altered the board header file so it's compatible with cc2650 launchpad demo codes.
I'm using the BLE sdk 2.2.2.25 example of simple peripheral as the base for my code.
I've been able to create a custom service using the generator here and integrate it into the simple peripheral example to transmit ADC readings following the guidelines from another tutorial meant for the cc2640r2f with the very critical help of this and this resource. It's been a surprising amount of work actually.
Now I've been fairly successful after a great deal of tinkering I can read adc values, store them in an array and set the first cell of the array as the parameter using SetParameter.
I have then regenerated the custom service also selecting the GATT_PROP_NOTIFY option on the example service generator and updated my code accordingly.
Now, when I go on my app (I'm using LightBlue on android) I am able to subscribe to notifications on my service, but when I "set" a new parameter it isn't being transmitted automatically to my phone. Basically, my phone says I'm subscribed to notifications but it's still only working with manually clicking the "read again" button.
Any thoughts on how to address this issue? Thanks.