![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
programme de base lorawan mdot pour les ers4 iut de nice
Dependencies: Servo Cayenne-LPP
Diff: DummySensor.h
- Revision:
- 46:a124538e2891
- Parent:
- 26:f07f5febf97f
- Child:
- 56:39847849d219
--- 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; }