28 #ifndef _EASYUINO_DEVICE_h 29 #define _EASYUINO_DEVICE_h 31 #if defined(ARDUINO) && ARDUINO >= 100 37 #include "Utilities.h" 55 #pragma region Public Virtual Common API Methods 61 virtual bool begin() = 0;
64 virtual void end() = 0;
69 #pragma region Public Common API Methods bool _isInitialized
Used to know if the device API is initialized and ready to receive requests.
Definition: Device.h:46
Device()
Constructor called by every sub-classes.
virtual bool begin()=0
Used to put the device ready to receive requests.
~Device()
Destroy all the resources associated with the device.
virtual void end()=0
Used to stop the device API.
General class that provides the common API behaviour for all the devices/sensors. ...
Definition: Device.h:42
bool isInitialized() const
Verify is the device is initialized and ready to use.