From 2ea9c0257119d326c4f0e1fd883c2e01b6039954 Mon Sep 17 00:00:00 2001 From: Patrick Balsiger Date: Mon, 5 Nov 2018 16:57:43 +0100 Subject: [PATCH] remove dispatch method as it is now supported by core --- src/IlluCat.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/IlluCat.h b/src/IlluCat.h index 72605f9..4143776 100644 --- a/src/IlluCat.h +++ b/src/IlluCat.h @@ -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 \ No newline at end of file