Narasing Sarwade
/
CAMSecuritySystem_rfid
lora
Diff: DummySensor.h
- Revision:
- 46:a124538e2891
- Parent:
- 26:f07f5febf97f
- Child:
- 56:39847849d219
diff -r 7df71f7c950b -r a124538e2891 DummySensor.h --- 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; }