ESP_IOT v2.5
IOT ESP Coding
PIRSensorClass Class Reference

#include <PIRSensorClass.h>

Inheritance diagram for PIRSensorClass:
Inheritance graph
Collaboration diagram for PIRSensorClass:
Collaboration graph

Public Member Functions

 PIRSensorClass (char *config)
 constructor More...
 
void loop ()
 Pure Virtual Function. More...
 
void setup ()
 Pure Virtual Function. More...
 
- Public Member Functions inherited from SensorClassType
 SensorClassType (char *config)
 
char * classIdentity ()
 
 ~SensorClassType ()
 destructor More...
 
virtual Type type () const
 
virtual void loop ()=0
 Pure Virtual Function. More...
 
virtual void setup ()=0
 Pure Virtual Function. More...
 
void setPinValues (int pin1, int pin2)
 
void registerCallback (sensorCallbackSignature *callback)
 
void registerCallbackValue (sensorCallbackValueSignature *callback)
 
void registerCallbackJSON (sensorCallbackJSONSignature *callback)
 
void callCallback (char *info, boolean flag)
 call the callback More...
 
void callCallbackValue (char *info, int value)
 call the callback More...
 
void callCallbackJSON (char *JSONString)
 call the callback for JSON More...
 
virtual void messageSetVal_SensorClassType (char *setName, char *valValue, boolean deviceNameSpecified)
 
virtual void messageSend_SensorClassType (char *sendValue)
 
virtual void messageCmd_SensorClassType (char *cmdValue)
 
virtual void messageLocal_SensorClassType (char *message)
 5.15.25 try a special command local to this class More...
 

Additional Inherited Members

- Public Attributes inherited from SensorClassType
int _pin1 = 0
 
int _pin2 = 0
 pin2 More...
 

Detailed Description

Definition at line 11 of file PIRSensorClass.h.

Constructor & Destructor Documentation

◆ PIRSensorClass()

PIRSensorClass::PIRSensorClass ( char *  config)

constructor

minimal sensors are a sugset of sensors...

Definition at line 9 of file PIRSensorClass.cpp.

Member Function Documentation

◆ loop()

void PIRSensorClass::loop ( )
virtual

Pure Virtual Function.

See also
https://www.w3schools.com/cpp/cpp_class_methods.asp

call the check

what to do with trigger? call feed

11.26.25 send status as well .. so we can hear what's happening 8.16.25 MQTT also send a STATUS

Implements SensorClassType.

Definition at line 52 of file PIRSensorClass.cpp.

Here is the call graph for this function:

◆ setup()

void PIRSensorClass::setup ( )
virtual

Pure Virtual Function.

default to 21,33 PIRSensorClass,23,33

turn off..

Implements SensorClassType.

Definition at line 67 of file PIRSensorClass.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

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