make dispatch overridable

This commit is contained in:
2018-09-19 00:36:47 +02:00
parent 1319fb045c
commit 410804a14e

View File

@@ -124,8 +124,8 @@ class IlluCat : public MeshSprocket {
} }
} }
void dispatch( uint32_t from, String &msg ) { virtual void dispatch( uint32_t from, String &msg ) {
Serial.println(msg); //Serial.println(msg);
currentMessage.fromJsonString(msg); currentMessage.fromJsonString(msg);
if(currentMessage.valid){ if(currentMessage.valid){
currentMessage.from = from; currentMessage.from = from;