hi..............
if i use sleep mode the data in for loop does the data will transmit to central or not
hi..............
if i use sleep mode the data in for loop does the data will transmit to central or not
Hi,
I am sorry but I do not understand what you mean. Can you elaborate?
Regards,
Terje
if i use the sleep mode ......then data which i want to send to phone (nrf toolbox app
)via ble .... it will transmit or not while they are in sleep mode
Hi,
What do you mean by "sleep mode"?
The nRF52832 has a "system OFF mode" which means it is essentially turned off, and then nothing will happen except it can be woken into reset in a number of ways.
In "system ON mode" everything is up an running on demand, i.e. CPU, clocks, peripherals are running when needed. In this mode, the CPU can be asleep and then it will wake up for instance on interrupts.
In order to send something over BLE you need to use a SoftDevice API call, which you must call from your code. Some of this will be through the use of SDK libraries. Keeping the connection alive, triggering event handlers, etc. is done by the SoftDevice and as long as you do not enter system OFF mode then there will not be any problems. You normally do not have to think about sleep levels at all.
If you are a beginner I will highly recommend that you start off with the getting started guide, nRF5 Series: Developing with SEGGER Embedded Studio, as well as testing and modifying examples from our nRF5 SDK.
Regards,
Terje
If you are a beginner I will highly recommend that you start off with the getting started guide, nRF5 Series: Developing with SEGGER Embedded Studio, as well as testing and modifying examples from our nRF5 SDK.
Absolutely.
The examples illustrate a background loop which will sleep when there's nothing to do.