Final version of the exercise on the Things Network
Dependencies: X_NUCLEO_IKS01A2
Diff: DummySensor.h
- Revision:
- 46:a124538e2891
- Parent:
- 26:f07f5febf97f
--- a/DummySensor.h Thu Jan 03 15:30:32 2019 +0000
+++ b/DummySensor.h Thu Jan 10 12:15:30 2019 +0000
@@ -21,13 +21,19 @@
/*
* A dummy sensor for Mbed LoRa Test Application
*/
-class DS1820
-{
+class DS1820 {
public:
- DS1820(uint32_t) { value = 1.0f; };
- bool begin() { return true; };
+ DS1820(uint32_t)
+ {
+ value = 1.0f;
+ };
+ bool begin()
+ {
+ return true;
+ };
void startConversion() {};
- float read() {
+ float read()
+ {
value += 1.1f;
return value;
}