OpenDevice
Open IoT (Internet Of Things) Platform and Framework http://opendevice.io
RFIDSensor Class Reference
Collaboration diagram for RFIDSensor:

Public Member Functions

 RFIDSensor (byte chipSelectPin, byte resetPin)
 
void init ()
 
bool hasChanged ()
 
- Public Member Functions inherited from Device
 Device (uint8_t ipin)
 
 Device (uint8_t ipin, DeviceType type)
 
 Device (uint8_t ipin, DeviceType type, bool sensor)
 
 Device (uint8_t iid, uint8_t ipin, DeviceType type)
 
 Device (uint8_t iid, uint8_t ipin, DeviceType type, bool sensor)
 
bool setValue (value_t value, bool sync=true)
 
void on ()
 
void off ()
 
bool isON ()
 
bool isOFF ()
 
value_t getValue ()
 
virtual size_t serializeExtraData (DeviceConnection *conn)
 
virtual void deserializeExtraData (Command *cmd, DeviceConnection *conn)
 
bool canReadSensor ()
 
void name (const char *name)
 
const char * name ()
 
DeviceenableInterrupt (uint8_t mode=CHANGE)
 
DeviceinvertedState ()
 
DeviceactiveLow ()
 
DevicesetInterval (int32_t _interval)
 
void onChange (DeviceListener)
 
void setSyncListener (DeviceListener listener)
 
bool notifyListeners ()
 
int toString (char buffer[])
 

Additional Inherited Members

- Public Types inherited from Device
enum  DeviceType {
  DIGITAL = 1, ANALOG = 2, ANALOG_SIGNED = 3, NUMERIC = 4,
  FLOAT2 = 5, FLOAT2_SIGNED = 6, FLOAT4 = 7, CHARACTER = 8,
  BOARD = 10, MANAGER = 11
}
 
- Public Attributes inherited from Device
uint8_t id
 
uint8_t pin
 
value_t currentValue
 
DeviceType type
 
const char * deviceName
 
bool sensor
 
int32_t readLastTime
 
int32_t readInterval
 
uint8_t targetID
 
bool inverted
 
volatile bool needSync
 
bool interruptEnabled
 
uint8_t interruptMode
 
- Static Public Attributes inherited from Device
static const uint8_t MAX_ANALOG_VALUE = 255
 

Member Function Documentation

◆ hasChanged()

bool RFIDSensor::hasChanged ( )
virtual

For Sensors :: read sensor ans check if value has changed

Reimplemented from Device.

◆ init()

void RFIDSensor::init ( )
virtual

This will be called on ODev.begin() to do extra initialization

Reimplemented from Device.


The documentation for this class was generated from the following file: