Hi all, i am experimenting on the example "ble_app_beacon" on my smart beacon kit, but i have two questions about it (though they are pretty general):
-
When a connection with a device happens, in the code we have the execution of "ble evt dispatch" and, inside this, "on ble evt" with also other stuff; let's say that in "on ble evt" i trigger a led, after doing this what instructions are executed in the code? I mean, the two devices stay connected, where does the code loop at this point? in the case "connected" of "on ble evt"?
-
In the code i mentioned, there is loaded the DFU service; let's say that i want to remove this service to add a new one, can the beacon connects without any services loaded for a first try? In other words, how can i REMOVE the DFU service (is it enough to delete it from "services_init?) without getting an error and still make the beacon connect with other devices?
Thanks in advance, sorry for bothering but i'm having a hard time at learning the Nordic system!