ESP_IOT v2.5
IOT ESP Coding
PIRSensorClass.cpp
Go to the documentation of this file.
1
2#include "PIRSensorClass.h"
3#include "../../Defines.h"
4//! minimal sensors are a sugset of sensors...
5#if defined(ESP_M5) && !defined(ESP_M5_MINIMAL_SENSORS)
6//#include <iostream>
7#include <string.h>
8#include <stdio.h>
10{
11
12 printf("PIRSensorClass init %s\n", config);
13}
14
15//!@see https://www.w3schools.com/cpp/cpp_class_methods.asp
17{
18 printf("PIRSensorClass::loop()\n");
19}
20
22{
23 printf("PIRSensorClass::setup()\n");
24}
25
26
27#ifdef NOT_USED
28//! adding the messages as well
29//! 5.14.25 (Laura/Paul flying). 5.14.74 great Dead
30//! 8.28.23 Adding a way for others to get informed on messages that arrive
31//! for the set,val
32//! 12.27.23 support setName == "socket"
33//! 1.10.24 if deviceNameSpecified then this matches this device, otherwise for all.
34//! It's up to the receiver to decide if it has to be specified
35void PIRSensorClass::messageSetVal_SensorClassType(char *setName, char* valValue, boolean deviceNameSpecified)
36{
37
38}
39
40//! 5.15.25 try a special command local to this class
42{
43
44}
45//! 12.28.23, 8.28.23 Adding a way for others to get informed on messages that arrive
46//! for the send -
48{
49
50}
51
52//! 12.28.23, 8.28.23 Adding a way for others to get informed on messages that arrive
53//! for the cmd
55{
56
57}
58#endif
59
60
61#endif
void setup()
Pure Virtual Function.
PIRSensorClass(char *config)
constructor
void loop()
Pure Virtual Function.
virtual void messageCmd_SensorClassType(char *cmdValue)
virtual void messageSend_SensorClassType(char *sendValue)
virtual void messageSetVal_SensorClassType(char *setName, char *valValue, boolean deviceNameSpecified)
virtual void messageLocal_SensorClassType(char *message)
5.15.25 try a special command local to this class