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??
the delay is 100 ms. The advertising interval will be 100 ms in this case which means the device will periodically advertise every 100ms. The device will in fact advertise for approximately 2ms and then sleep for 98ms (if you have not set any other activity in your application).
As it says in the comment for this define, you can configure this advertising interval from 100ms to 10,240 ms. It is your choice how frequently you want your device to advertise. If you choose short advertising interval, advertising information will appear quickly on a BLE scanning device.
can you tell me how to calculate advertise on time and advertise off time? like for 100 ms,there is 2 ms on time, 98 ms off time. if advertise interval is different like 5000 ms then how to calculate advertise on time and off time??
can anyone tell me use of APP_TIMER_INIT here? when i comment is , it stops advertising here??. can you explain it??. in beacon code they have already defined timer. when i comment it,it stops advertising.
If you have 5000ms advertising interval, you still have around 2ms advertising and 4998ms sleeping.
The app timer is used for the BSP library. BSP library initializes buttons and leds for the development board. So what happens when you comment out only app timer initialization is that the program halts in BSP initialization. If you comment out both app timer and BSP initialization then advertising should still work but you will see not LED blink on your board.
if i want to increase advertising time ?? like if i want to make advertising time 500 ms??