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

BLE Eddystone-tlm data not getting updated

I am trying to update the data fields in tlm, temperature.

I have updated the functions update_temp to send a hardcoded data.

static void update_temp(void)
{
  int32_t temp; // variable to hold temp reading

  int16_t temp_new = (int16_t) temp; // convert from int32_t to int16_t

  m_tlm.temp[0] = 77; // Right-shift by two to remove decimal part

  m_tlm.temp[1] = 77; // Left-shift 6 to get fractional part with 0.25 degrees C resolution
}

but in the NRF-connect app, the values of temperature remains 111.44531C. 

I even tried sending dynamic data, but the issue still remains.

Please let me know if I need to change data in some other place.

Parents Reply Children
  • Hi again

    I tried to replicate your code, and I have no problems overriding these values and seeing it change in the app. 

    Based on your screenshot the issue could be that the app has stopped scanning, which is why you don't see any updates. 

    If you go into the app settings and open the "Scanner" section you can change how quickly the scanning times out, so that it will run longer without requiring any user input. 

    Best regards
    Torbjørn

Related