Quantcast
Channel: Cypress Semiconductor - PSoC 4 BLE
Viewing all articles
Browse latest Browse all 726

Using RTC to Put BLE Device to Sleep for Hours

$
0
0
Forums: 

Device PSoC4 CYBLE-224116-01

Hello,

I am trying to create an application where the user can put the BLE device to sleep for certain hours.

I have created a service which has two characteristics; 1. Sleep time and 2. SleepNowFlag.

The user enters the duration for which it wants the BLE device to sleep, and they write on to the SleepNowFlag when they want to put the BLE  to sleep.

The firmware in the BLE device keeps checking the flag; and when the flag is set it puts itself to sleep.

Now i want the device to wakeup when the sleep time is over and start advertising. I thought of using the RTC Alarm Feature but am not able to figure out how.

Please Help!

 


Viewing all articles
Browse latest Browse all 726

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>