mirror of
https://gitlab.com/wirelos/sprocket-lib.git
synced 2025-12-16 21:34:08 +01:00
read config from json on SPIFFS
This commit is contained in:
@@ -42,6 +42,12 @@ void Sprocket::loop(){
|
||||
scheduler.execute();
|
||||
}
|
||||
|
||||
void Sprocket::dispatch( uint32_t from, String &msg ) {
|
||||
MeshMessage mMsg;
|
||||
if(mMsg.fromJsonString(msg)){
|
||||
dispatchMessageToPlugins(mMsg);
|
||||
}
|
||||
}
|
||||
|
||||
void Sprocket::addPlugin(Plugin* p){
|
||||
plugins.reserve(1);
|
||||
|
||||
Reference in New Issue
Block a user