This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Where to use lib_aci_set_local_data

Hello Nordic Team, i've get my things working and i figured out how i can set service data and to display it in nRF Master Control.

Now i want to CHANGE my service data every 5 seconds for example.

Till now, i've used lib_aci_set_local_data like it is set in BLE-Broadcast example (maybe you open this sketch and see) within part: case ACI_DEVICE_STANDBY:

I tried to use it outside the switch-case, but then i get "You're in a while(1) loop" with ACI D message.

As long as i set it within case ACI_DEVICE_STANDBY: it is working for the first set of data, but then never changes.

How and where do i have to set local data without getting this while(1) error?

Noone here to help?

Parents
  • Any chance you could share your project? I looked at the broadcast and as far as I can see we are not using set_local_data there, but I could be wrong. This should be fairly straight forward as long as the set pipe property is set (would be #define PIPE_GAP_DEVICE_NAME_SET in services.h with the _SET postfix). Note that if you don't want to share your project here you could create a support case instead.

Reply
  • Any chance you could share your project? I looked at the broadcast and as far as I can see we are not using set_local_data there, but I could be wrong. This should be fairly straight forward as long as the set pipe property is set (would be #define PIPE_GAP_DEVICE_NAME_SET in services.h with the _SET postfix). Note that if you don't want to share your project here you could create a support case instead.

Children
No Data
Related