This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Timestamp in heart-rate-collector

Hi,

I'm trying to get a timestamp when advertisement occur in heart-rate-collector example(E:\test_nrf\examples\ble_central\ble_app_hrs_c\pca10028\s130\arm5_no_packs).

I modified the code and receiving the advertisement packets.can u please tell me which function is used to get the timestamp ??

Parents Reply Children
  • Iam doing project called automatic lighting system using beacons. iam using two beacons.first beacon(ie. receiving) is connected to the led and its capable of collecting the advertising packets (E:\test_nrf\examples\ble_central\ble_app_hrs_c\pca10028) and second beacon is capable of advertising packets beacon(E:\test_nrf\examples\ble_peripheral\ble_app_beacon\pca10028).upto now first beacon is collecting the advertisement packets and light turns on.my aim is after receiving the advertisement by first beacon ,the light should remains turns ON tilll 5minutes and then it should turns off ,without using delay or sleep function. can u please tell which timer is used to solve this method??

  • I see. You don't need time and date to do that. I don't know what you mean without using delay or sleep function, but you can use app timer to implement to do this. App timer uses the low power RTC1, which does use much current. Many of the examples in the SDK uses this, and there is also a tutorial available here.

Related