mirror of
https://gitlab.com/zwirbel/illucat.git
synced 2025-12-16 10:04:30 +01:00
no broadcast when dispatched
This commit is contained in:
@@ -128,6 +128,7 @@ class IlluCat : public MeshSprocket {
|
||||
if(type == WS_EVT_DATA){
|
||||
String frame = WsUtils::parseFrameAsString(type, arg, data, len, 0);
|
||||
dispatch(0, frame);
|
||||
net->mesh.sendBroadcast(frame);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -136,9 +137,6 @@ class IlluCat : public MeshSprocket {
|
||||
if(currentMessage.valid){
|
||||
currentMessage.from = from;
|
||||
publish(currentMessage.topic, currentMessage.payload);
|
||||
if(currentMessage.broadcast){
|
||||
net->mesh.sendBroadcast(msg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -81,6 +81,7 @@ class PixelPlugin : public Plugin {
|
||||
}
|
||||
void setPattern(String msg){
|
||||
pixels->Index = 0;
|
||||
pixels->Direction = FORWARD;
|
||||
pixels->ActivePattern = (pattern)atoi(msg.c_str());
|
||||
}
|
||||
void animate(){
|
||||
|
||||
Reference in New Issue
Block a user