ble_app_beacon.rarhello there i used ble_app_beacon example. i want to make some modifications. i want to put it in sleep mode after some time and again wake up after some time? can you tell me how to do this?? should i use timer interrupt example??
ble_app_beacon.rarhello there i used ble_app_beacon example. i want to make some modifications. i want to put it in sleep mode after some time and again wake up after some time? can you tell me how to do this?? should i use timer interrupt example??
It takes around 2 milliseconds to send advertising packet on all three advertising channels. The advertising interval tells how long to wait until sending advertising packets again. How frequently advertising packets are sent is controlled by adjusting the advertising interval. Advertising interval is can be minimum 20ms and max 10.24 seconds.
If that does not answer your question, can you please clarify your question.
i want to advertise continuously 500 ms
can i define another timer??
By enabling advertising, you are advertising continuously. You can however not send advertising packets with higher frequency than 50Hz (per 20ms). That limitation is defined in the Bluetooth specification.
If you have advertising packets sent out per 20ms then a scanning device should be able to connect to your device within 30ms if advertising packet is not corrupted. A scanning device can continuously scan in order to connect quickly.
You can add as many application timers as you like. Just follow the three steps described above. For code reference, see the example that I attached to my answer on your sister thread.
no i am saying that i want beacon 'on' for 500 ms. then 'off' for 5 second