mirror of
https://gitlab.com/wirelos/sprocket-lib.git
synced 2025-12-16 13:25:03 +01:00
remove unused
This commit is contained in:
@@ -31,16 +31,6 @@ class MeshSprocket : public Sprocket {
|
|||||||
return this;
|
return this;
|
||||||
} using Sprocket::activate;
|
} using Sprocket::activate;
|
||||||
|
|
||||||
virtual void onMessage(uint32_t from, String &msg) {
|
|
||||||
//Serial.printf("MeshSprocket onMessage: received from %u msg=%s\n", from, msg.c_str());
|
|
||||||
SprocketMessage sMsg;
|
|
||||||
sMsg.fromJsonString(msg);
|
|
||||||
if(sMsg.valid){
|
|
||||||
sMsg.from = from;
|
|
||||||
publish(sMsg.topic, sMsg.payload);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
void dispatch( uint32_t from, String &msg ) {
|
void dispatch( uint32_t from, String &msg ) {
|
||||||
SprocketMessage sMsg;
|
SprocketMessage sMsg;
|
||||||
sMsg.fromJsonString(msg);
|
sMsg.fromJsonString(msg);
|
||||||
|
|||||||
Reference in New Issue
Block a user