ESP_IOT v2.5
IOT ESP Coding
M5Atom_QRCodeModuleClass.cpp
Go to the documentation of this file.
1//
2// M5Atom_QRCodeModuleClass.cpp
3//
4//
5// Created by Scott Moody on 5/6/25.
6//
7
9
10#include "../ATOM_QRCode_Module/ATOMQRCodeModule.h"
11
13{
14 SerialDebug.printf("M5Atom_QRCodeModuleClass init %s\n", config);
15
16}
17
18
19//! Data members of class
20//! Generic config info .. specific the the sensor type
21
22//!starts the PTStepper
24{
25}
26
27//!setup the PTStepper
29{
31}
32
33//! stops motor
35{
36
37}
38
39//!setup the PTStepper
41{
43}
44
45//! ATOM specific
46
47//! these are from the ATOM
48
49//! 8.28.23 Adding a way for others to get informed on messages that arrive
50//! for the set,val
51//! 12.27.23 support setName == "QRCode"
52//! 1.10.24 if deviceNameSpecified then this matches this device, otherwise for all.
53//! It's up to the receiver to decide if it has to be specified
54void M5Atom_QRCodeModuleClass::messageSetVal_M5AtomClassType(char *setName, char* valValue, boolean deviceNameSpecified)
55{
56 messageSetVal_ATOMQRCodeModule(setName, valValue, deviceNameSpecified);
57
58}
59
60//! 12.28.23, 8.28.23 Adding a way for others to get informed on messages that arrive
61//! for the send -
62void M5Atom_QRCodeModuleClass::messageSend_M5AtomClassType(char *sendValue, boolean deviceNameSpecified)
63{
64
65}
66
67
68//! BUTTON PROCESSING abstraction
69//!short press on buttonA (top button)
71{
73
74}
75//!long press on buttonA (top button)
77{
79
80}
81
82//!returns a string in in URL so: status&battery=84'&buzzon='off' } .. etc
83//!starts with "&"*
85{
87}
88
89//!returns a string in in JSON so: status&battery=84'&buzzon='off' } .. etc
90//!starts with "&"*
92{
94}
95/*
96
97 //!THIS IS the setup() and loop() but using the "component" name, eg AudioModule()
98 //!This will perform preference initializtion as well
99 //! called from the setup()
100 //! Pass in the method to call on a loud (over a threshhold. The parameter for value will be sent
101 //void setup_AudioModule(void (*loudCallback)(int));
102 void setup_ATOMQRCodeModule();
103
104 //! called for the loop() of this plugin
105 void loop_ATOMQRCodeModule();
106
107
108 //! 8.28.23 Adding a way for others to get informed on messages that arrive
109 //! for the set,val
110 //! 1.10.24 if deviceNameSpecified then this matches this device, otherwise for all.
111 //! It's up to the receiver to decide if it has to be specified
112 void messageSetVal_ATOMQRCodeModule(char *setName, char* valValue, boolean deviceNameSpecified);
113
114 //! BUTTON PROCESSING abstraction
115 //!short press on buttonA (top button)
116 void buttonA_ShortPress_ATOMQRCodeModule();
117 //!long press on buttonA (top button)
118 void buttonA_LongPress_ATOMQRCodeModule();
119
120 //!returns a string in in URL so: status&battery=84'&buzzon='off' } .. etc
121 //!//!starts with "&"*
122 char * currentStatusURL_ATOMQRCodeModule();
123
124
125 //!returns a string in in JSON so: status&battery=84'&buzzon='off' } .. etc
126 //!starts with "&"*
127 char * currentStatusJSON_ATOMQRCodeModule();
128
129 */
void setup_ATOMQRCodeModule()
the setup() for this ATOM
char * currentStatusURL_ATOMQRCodeModule()
returns a string in in URL so: status&battery=84'&buzzon='off' } .. etc
void buttonA_LongPress_ATOMQRCodeModule()
long press on buttonA (top button)
void messageSetVal_ATOMQRCodeModule(char *setName, char *valValue, boolean deviceNameSpecified)
void loop_ATOMQRCodeModule()
the loop
void buttonA_ShortPress_ATOMQRCodeModule()
char * currentStatusJSON_ATOMQRCodeModule()
void messageSetVal_M5AtomClassType(char *setName, char *valValue, boolean deviceNameSpecified)
ATOM specific.
void buttonA_LongPress_M5AtomClassType()
long press on buttonA (top button)
M5Atom_QRCodeModuleClass(char *config)
constructor
void loop_M5AtomClassType()
setup the PTStepper
void messageSend_M5AtomClassType(char *sendValue, boolean deviceNameSpecified)
void start_M5AtomClassType()
starts the PTStepper
void setup_M5AtomClassType()
setup the PTStepper
An mostly virtual class.