2 #ifndef Communication_h
3 #define Communication_h
6 #include <painlessMesh.h>
8 #define MESH_PREFIX "DEZIBOT_MESH"
9 #define MESH_PASSWORD "somethingSneaky"
10 #define MESH_PORT 5555
19 static void begin(
void);
25 void onReceive(
void (*callbackFunc)(String &msg));
27 static void (*userCallback)(String &msg);
28 static void receivedCallback(uint32_t from, String &msg);
29 static uint32_t groupNumber;
void sendMessage(String msg)
void onReceive(void(*callbackFunc)(String &msg))
static void begin(void)
initialize the Mesh Compnent, must be called before the other methods are used.
void setGroupNumber(uint32_t number)