Timestamp Data in nRF5340

Hi,

I wanted to time stamp data which is sent via Bluetooth connection. Is there any pre defined functions to do that. Also please suggest any modifictions to be done in proj.config file too.

Expected format:

Hours:minutes:seconds   Data

Regards

Karthik Kumar

Parents
  • Hi 

    If you want to do the time stamps on the peripheral, and send that as part of the BLE data, you will need to make it transmit the data as part of its advertising data, or part of a service if you're in a connection. You can take a look at the Bluetooth:Peripheral CTS client that lets you print the current time for example. Even though you don't want to use that service specifically, it should give you an idea of how to send the timestamp data over BLE.

    Best regards,

    Simon

Reply
  • Hi 

    If you want to do the time stamps on the peripheral, and send that as part of the BLE data, you will need to make it transmit the data as part of its advertising data, or part of a service if you're in a connection. You can take a look at the Bluetooth:Peripheral CTS client that lets you print the current time for example. Even though you don't want to use that service specifically, it should give you an idea of how to send the timestamp data over BLE.

    Best regards,

    Simon

Children
Related