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
  • There is no generic function to get a timestamp, the nRF5x doesn't know what the time and date is.

    If you have some kind of reference you can implement your own time tracking system, or you could use something like the current time service to get the time and date from the central device. See this.

  • 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??

Reply
  • 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??

Children
No Data
Related