ESP_IOT v2.5
IOT ESP Coding
M5Core2Module.h
Go to the documentation of this file.
1
2#ifndef M5Core2Module_h
3#define M5Core2Module_h
4
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//! 1.10.24 if deviceNameSpecified then this matches this device, otherwise for all.
20//! It's up to the receiver to decide if it has to be specified
21void messageSetVal_M5Core2Module(char *setName, char* valValue, boolean deviceNameSpecified);
22
23//! 8.28.23 Adding a way for others to get informed on messages that arrive
24//! for the set,val
25void messageSend_M5Core2Module(char* sendValue);
26
27
28
29//! BUTTON PROCESSING abstraction
30//!short press on buttonA (top button)
32//!long press on buttonA (top button)
34//! BUTTON PROCESSING abstraction
35//!short press on buttonA (top button)
37//!long press on buttonA (top button)
39
40//!returns a string in in URL so: status&battery=84'&buzzon='off' } .. etc
41//!//!starts with "&"*
43
44
45//!returns a string in in JSON so: status&battery=84'&buzzon='off' } .. etc
46//!starts with "&"*
48
49#endif
void setup_M5Core2Module()
void loop_M5Core2Module()
called for the loop() of this plugin
void buttonB_LongPress_M5Core2Module()
long press on buttonA (top button)
void buttonA_LongPress_M5Core2Module()
long press on buttonA (top button)
char * currentStatusJSON_M5Core2Module()
void messageSend_M5Core2Module(char *sendValue)
void messageSetVal_M5Core2Module(char *setName, char *valValue, boolean deviceNameSpecified)
char * currentStatusURL_M5Core2Module()
returns a string in in URL so: status&battery=84'&buzzon='off' } .. etc //!starts with "&"*
void buttonA_ShortPress_M5Core2Module()
void buttonB_ShortPress_M5Core2Module()