ESP_IOT v2.5
IOT ESP Coding
ATOM_SocketModule.h
Go to the documentation of this file.
1
2
3#ifndef ATOM_SocketModule_h
4#define ATOM_SocketModule_h
5
6//!THIS IS the setup() and loop() but using the "component" name, eg AudioModule()
7//!This will perform preference initializtion as well
8//! called from the setup()
9//! Pass in the method to call on a loud (over a threshhold. The parameter for value will be sent
10//void setup_AudioModule(void (*loudCallback)(int));
12
13//! called for the loop() of this plugin
15
16
17//! 8.28.23 Adding a way for others to get informed on messages that arrive
18//! for the set,val
19//! 12.27.23 support setName == "socket"
20//! 1.10.24 if deviceNameSpecified then this matches this device, otherwise for all.
21//! It's up to the receiver to decide if it has to be specified
22void messageSetVal_ATOM_SocketModule(char *setName, char* valValue, boolean deviceNameSpecified);
23
24//! 12.28.23, 8.28.23 Adding a way for others to get informed on messages that arrive
25//! for the set,val
26//! 5.21.22 note tthe SEND and CMD are both routed through "send"
27void messageSend_ATOM_SocketModule(char *sendValue);
28
29//! BUTTON PROCESSING abstraction
30//!short press on buttonA (top button)
32//!long press on buttonA (top button)
34
35//!returns a string in in URL so: status&battery=84'&buzzon='off' } .. etc
36//!starts with "&"*
38
39//!returns a string in in JSON so: status&battery=84'&buzzon='off' } .. etc
40//!starts with "&"*
42#endif
char * currentStatusURL_ATOM_SocketModule()
returns a string in in URL so: status&battery=84'&buzzon='off' } .. etc
void buttonA_LongPress_ATOM_SocketModule()
long press on buttonA (top button)
void setup_ATOM_SocketModule()
void loop_ATOM_SocketModule()
called for the loop() of this plugin
void messageSend_ATOM_SocketModule(char *sendValue)
void messageSetVal_ATOM_SocketModule(char *setName, char *valValue, boolean deviceNameSpecified)
char * currentStatusJSON_ATOM_SocketModule()
void buttonA_ShortPress_ATOM_SocketModule()