I seem to be struggling getting several characteristics to notify on my nrf52840 - peripheral device.
I can get ONE to notify, but when I add more then notifications stop. The reads work perfectly well, but I need several characteristics to actively notify.
This is my working "pseudo" code:
________________________________
int err = bt_gatt_notify(NULL, &atlas_sensors_srv.attrs[3], &weight_custom ,sizeof(weight_custom));
________________________________
(in the example above temperature does not notify, and the bt_gatt_notify for this will of course not work. I know that. But I can read it (my_read_temperature_function is not shown, but works). When I connect to my device (using nfr Connect) and subscribe - all is well. I get the updates.
However I activate notify for the temperaure:
_________________________________
_________________________________
The both characteristics show up, and I can subscribe to both. But ONLY the temperature actually updates.
Somehow the notifications for the weigh stops when I also add temperature.
I only have this problem with a custom service. The problem is with CCCD - but I cannot see what!
Do I need to limit it to one notify per custom service? that seems a bit strange.
Sorry for the newbie question - but Im getting there!
here is my prj.conf
__________________________________
__________________________________