Sample BLE thermometer profile for nRF51-DK with sensing from LM35

Dependencies:   BLE_API mbed nRF51822 X_NUCLEO_IDB0XA1

Fork of BLE_Thermometer by Bluetooth Low Energy

Revision:
18:86ccdd5a2bfd
Parent:
15:57860d1cd14d
Child:
19:a1ab85d6a0d5
diff -r 9ce6c0171634 -r 86ccdd5a2bfd main.cpp
--- a/main.cpp	Tue Sep 20 13:47:58 2016 +0100
+++ b/main.cpp	Thu May 31 15:10:15 2018 +0000
@@ -18,6 +18,8 @@
 #include "ble/BLE.h"
 #include "ble/services/HealthThermometerService.h"
 
+AnalogIn LM35(P0_2);
+
 DigitalOut led1(LED1);
 
 static HealthThermometerService *thermometerServicePtr;
@@ -105,6 +107,9 @@
             triggerSensorPolling = false;
 
             /* In our case, we simply update the dummy temperature measurement. */
+            /*
+            float temperature = ((LM35*3.3)-0.600)*100.0;
+            */
             currentTemperature += 0.1;
             thermometerServicePtr->updateTemperature(currentTemperature);
         } else {