remove dispatch method as it is now supported by core

This commit is contained in:
2018-11-05 16:57:43 +01:00
parent 5a0225b040
commit 2ea9c02571

View File

@@ -25,8 +25,6 @@ class IlluCat : public Sprocket {
SprocketConfig sprocketConfig;
OtaConfig otaConfig;
WebServerConfig webConfig;
SprocketMessage currentMessage;
IlluCat(SprocketConfig cfg, OtaConfig otaCfg, WebServerConfig webCfg) : Sprocket(cfg) {
sprocketConfig = cfg;
@@ -43,16 +41,6 @@ class IlluCat : public Sprocket {
addPlugin(new WebApi(server, 1));
}
// TODO move to core
virtual void dispatch( uint32_t from, String &msg ) {
currentMessage.fromJsonString(msg);
if(currentMessage.valid){
currentMessage.from = from;
publish(currentMessage.topic, currentMessage.payload);
}
}
};
#endif