Putting a Metawear device into 'sleep' mode.
I read somewhere that when Mbient ships their hardware with a battery in place, that the device is put into a 'sleep' mode that it is awoken from by pressing the button which places it into idle mode awaiting connection. Is there a command in the API or other method by which I could return the device to this sleeping state where it does not sit listening for BTLE connections?
This discussion has been closed.
Comments
Yes, I understand it would require a mechanical press of the button to wake it up.
Thanks
P.S. I thought perhaps that once it had been awoken from sleep it may not respond to the sleep command. So I removed and reinserted the battery, then tried to sleep it. Still nothing.
When can you make a change to the Metawear IOS App to have a sleep function built into that for testing and also allow us to have a quick solution.
Thanks
How are you determining that the board has gone to sleep? How can anyone ever be sure that the Sleep mode has worked other than the fact that the connection with the device is lost?
MichaelG stated "After executing the code Bluetooth reports that the device looses connection"
He is inferring the device is now in "Sleep" mode. Can you try to think of reasons why your device is using more power than you have quoted whilst in "Sleep" mode?
Thanks
Is there any other way to trigger the reset, other than from an explicit command from the app?
runOnDeviceBoot
block.