hi.....
i am using nrf52832 and peripheral device , i need to advertise only when it reaches the certain value (threshold )so that i can save some power how to do this
suggest an idea
hi.....
i am using nrf52832 and peripheral device , i need to advertise only when it reaches the certain value (threshold )so that i can save some power how to do this
suggest an idea
:
:
if( it > threshold )
{
advertising_start();
}
:
:
https://devzone.nordicsemi.com/f/nordic-q-a/18277/proper-way-to-start-stop-advertising
hi ... awneil , seeing you after long back .....above the code , i know upto this , after advertising _start() , how to send the data over ble app?
where should i do?
If you know how to do that, why did you ask?
Transferring the data over BLE is an entirely different question from "how to start advertising" !
But, surely, you have already done that ?
Please clarify the question.
am sorry for above question ,
yes i want to do like this
sleep ---> wake up ----> check the threshold----> if it above the threshold---> then it should start advertise and send the data over ble ---> and then want to sleep again ... these loops to be run continuously
how to do this?
So which part are you stuck on?
Again, the sending of data is no different to any of the SDK examples.
The only difference here is the condition on when you start the advertising - which has been covered.
So which part are you stuck on?
Again, the sending of data is no different to any of the SDK examples.
The only difference here is the condition on when you start the advertising - which has been covered.