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

Sync two notifications using nrf8001

Hi there,

We are using the nrf8001 and a arduino to read out two sensors. The two measurements should be at the same time and therefore are coupled to eachother. Is there a way to use two separate characteristics notification for both sensors and know for sure that when you receive the data that both notifications correspond to the same point in time?

The only solution we could come up with is using one notifciation and combine the sensor data. But this makes the data not readable for other simple applications.

Parents
  • Hi,

    Unfortunately you are newer guaranteed that two notifications is sent in the same connection event. Most likely they would be sent in different events. To fix this you could either combine them into one notification as you already mentioned, or you could add a timestamp or counter to the packets to identify the value pairs.

    Best regards, Runar

Reply
  • Hi,

    Unfortunately you are newer guaranteed that two notifications is sent in the same connection event. Most likely they would be sent in different events. To fix this you could either combine them into one notification as you already mentioned, or you could add a timestamp or counter to the packets to identify the value pairs.

    Best regards, Runar

Children
No Data
Related