ESP_IOT v2.5
IOT ESP Coding
M5Atom_SocketModuleClass.h
Go to the documentation of this file.
1//
2// M5Atom_SocketModuleClass.hpp
3//
4//
5// Created by Scott Moody on 5/6/25.
6//
7
8#ifndef M5Atom_SocketModuleClass_h
9#define M5Atom_SocketModuleClass_h
10
11#include "../../Defines.h"
12
13#include "M5AtomClassType.h"
14
15//! An concrete class
17{
18public:
19 //! constructor
20 M5Atom_SocketModuleClass(char *config);
21
22 //! destructor
24
25 //! Data members of class
26 //! Generic config info .. specific the the sensor type
27
28 //!starts the PTStepper
30
31 //!setup the PTStepper
33
34 //! stops motor
36
37 //!setup the PTStepper
39
40 //! ATOM specific
41
42 //! these are from the ATOM
43
44 //! 8.28.23 Adding a way for others to get informed on messages that arrive
45 //! for the set,val
46 //! 12.27.23 support setName == "socket"
47 //! 1.10.24 if deviceNameSpecified then this matches this device, otherwise for all.
48 //! It's up to the receiver to decide if it has to be specified
49 void messageSetVal_M5AtomClassType(char *setName, char* valValue, boolean deviceNameSpecified);
50
51 //! 12.28.23, 8.28.23 Adding a way for others to get informed on messages that arrive
52 //! for the send -
53 void messageSend_M5AtomClassType(char *sendValue, boolean deviceNameSpecified);
54
55 //! 12.28.23, 8.28.23 Adding a way for others to get informed on messages that arrive
56 //! for the cmd
57 //void messageCmd_M5AtomClassType(char *cmdValue);
58
59 //! BUTTON PROCESSING abstraction
60 //!short press on buttonA (top button)
62 //!long press on buttonA (top button)
64
65 //!returns a string in in URL so: status&battery=84'&buzzon='off' } .. etc
66 //!starts with "&"*
68
69 //!returns a string in in JSON so: status&battery=84'&buzzon='off' } .. etc
70 //!starts with "&"*
72};
73#endif /* M5Atom_SocketModuleClass_h */
~M5Atom_SocketModuleClass()
destructor
void start_M5AtomClassType()
starts the PTStepper
M5Atom_SocketModuleClass(char *config)
constructor
void loop_M5AtomClassType()
setup the PTStepper
void buttonA_LongPress_M5AtomClassType()
long press on buttonA (top button)
void setup_M5AtomClassType()
setup the PTStepper
void messageSetVal_M5AtomClassType(char *setName, char *valValue, boolean deviceNameSpecified)
ATOM specific.
void messageSend_M5AtomClassType(char *sendValue, boolean deviceNameSpecified)
An mostly virtual class.