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

how to send temperature values in nrf5840

I'm using Nordic nRF5840 and I want to send the micro controller's temperature every 1 second via Bluetooth. Can you tell me how to implement it?

I found an example named Health Thermometer Service Sample Application. Does it apply for nRF5840? I just want to send the chip's temperature using BLE every 1 sec.

Thanks in advance!

Parents
  • The Health Thermometer profile requires to be in a connection. If you're just intending to broadcast the temperature without requiring a connection, there is an old example on Nordic's GitHub page. I recently updated my fork of it to work with SDK 12.3.0: github.com/.../nrf5-ble-app-temp

    Disclaimer: I'm not entirely sure if it reads temperatures correctly any more. I'm getting 40°C flat when I try with my pca10001, but I don't think it even has a temperature sensor. I've been planning to modify mine to read from an external, more accurate sensor.

Reply
  • The Health Thermometer profile requires to be in a connection. If you're just intending to broadcast the temperature without requiring a connection, there is an old example on Nordic's GitHub page. I recently updated my fork of it to work with SDK 12.3.0: github.com/.../nrf5-ble-app-temp

    Disclaimer: I'm not entirely sure if it reads temperatures correctly any more. I'm getting 40°C flat when I try with my pca10001, but I don't think it even has a temperature sensor. I've been planning to modify mine to read from an external, more accurate sensor.

Children
Related