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?

Related