This project takes a temperature measurement using the internal temperature sensor of the nRF51822, does an ADC reading to get the battery voltage, packs it up as service data in an advertisement packet and sends it, along with an ID string based on the Bluetooth address of the chip. This is the format expected by the nRF Temp apps for iOS and Android, so these will be capable of picking this up and showing the measurement.
- nRF5 SDK version 12.1.0
- S130 SoftDevice version 2.0.1
- nRF51 Development Kit PCA10028
The project may need modifications to work with later versions or other boards.
To compile it, clone the repository in the examples/ble_peripheral/ folder in the nRF5 SDK.
This project is a fork of https://github.com/NordicSemiconductor/nrf51-ble-app-temp
The main purpose of the fork was to port it to the latest nRF5 SDK and add gcc support.
It has not been thoroughly tested, so there might be unknown issues. It is provided as-is, without any warranty.
The application is built to be used with the official nRF5 SDK, that can be downloaded from http://developer.nordicsemi.com/nRF5_SDK/