read config from json on SPIFFS

This commit is contained in:
2018-08-26 18:58:37 +02:00
parent 5334d58433
commit b676746723
11 changed files with 129 additions and 67 deletions

View File

@@ -34,10 +34,7 @@ class MeshSprocket : public Sprocket {
};
void dispatch( uint32_t from, String &msg ) {
MeshMessage mMsg;
if(mMsg.fromJsonString(msg)){
dispatchMessageToPlugins(mMsg);
}
Sprocket::dispatch(from, msg);
onMessage(from, msg);
}