mirror of
https://gitlab.com/wirelos/sprocket-lib.git
synced 2025-12-16 13:25:03 +01:00
rename message type
This commit is contained in:
@@ -33,8 +33,8 @@ class OtaTcpPlugin : public Plugin {
|
||||
ArduinoOTA.begin();
|
||||
otaTask.enable();
|
||||
}
|
||||
void onMessage(MeshMessage msg) {
|
||||
if(msg.type == MeshMessage::OTA){
|
||||
void onMessage(SprocketMessage msg) {
|
||||
if(msg.type == SprocketMessage::OTA){
|
||||
Serial.println("OTA msg received");
|
||||
WiFi.disconnect();
|
||||
net->mesh.stop();
|
||||
|
||||
Reference in New Issue
Block a user