ESP_IOT v2.5
IOT ESP Coding
BuzzerSensorClass.h
Go to the documentation of this file.
1//
2// BuzzerSensorClass.hpp
3//
4//
5// Created by Scott Moody on 5/14/25.
6//
7
8#ifndef BuzzerSensorClass_hpp
9#define BuzzerSensorClass_hpp
10
11#include "../../Defines.h"
12
13#include "SensorClassType.h"
14
16{
17public:
18 //! constructor
19 BuzzerSensorClass(char *config);
20
21 //! Pure Virtual Function
22 void loop();
23
24 //! Pure Virtual Function
25 void setup();
26
27 //! these are not initialized...
28
29 // Define the array of leds. 定义LED阵列.
30#ifdef NOT_DEFINED
31 //! adding the messages as well
32 //! 5.14.25 (Laura/Paul flying). 5.14.74 great Dead
33 //! 8.28.23 Adding a way for others to get informed on messages that arrive
34 //! for the set,val
35 //! 12.27.23 support setName == "socket"
36 //! 1.10.24 if deviceNameSpecified then this matches this device, otherwise for all.
37 //! It's up to the receiver to decide if it has to be specified
38 void messageSetVal_SensorClassType(char *setName, char* valValue, boolean deviceNameSpecified);
39
40 //! 12.28.23, 8.28.23 Adding a way for others to get informed on messages that arrive
41 //! for the send -
42 void messageSend_SensorClassType(char *sendValue);
43
44 //! 12.28.23, 8.28.23 Adding a way for others to get informed on messages that arrive
45 //! for the cmd
46 void messageCmd_SensorClassType(char *cmdValue);
47#endif
48 //! 5.15.25 try a special command local to this class
49 void messageLocal_SensorClassType(char *message);
50
51private:
52 //! makes the buzzer sound, called internally
53 void performBuzzer();
54};
55
56
57#endif /* BuzzerSensorClass_hpp */
void messageLocal_SensorClassType(char *message)
these are not initialized...
void setup()
Pure Virtual Function.
void loop()
Pure Virtual Function.
BuzzerSensorClass(char *config)
constructor
virtual void messageCmd_SensorClassType(char *cmdValue)
virtual void messageSend_SensorClassType(char *sendValue)
virtual void messageSetVal_SensorClassType(char *setName, char *valValue, boolean deviceNameSpecified)