mirror of
https://gitlab.com/wirelos/sprocket-lib.git
synced 2025-12-16 13:25:03 +01:00
move plugins to sprocket
This commit is contained in:
@@ -36,9 +36,12 @@ class OtaTcpPlugin : public Plugin {
|
||||
void onMessage(MeshMessage msg) {
|
||||
if(msg.type == MeshMessage::OTA){
|
||||
Serial.println("OTA msg received");
|
||||
WiFi.disconnect();
|
||||
connectUpdateNetwork();
|
||||
enable();
|
||||
//net->mesh.sendBroadcast("my ip:" + WiFi.localIP().toString(), true);
|
||||
//net->mesh.sendBroadcast("gw ip:" + WiFi.gatewayIP().toString(), true);
|
||||
WiFi.gatewayIP().printTo(Serial);
|
||||
}
|
||||
}
|
||||
void setup(Scheduler* userScheduler, Network* network){
|
||||
|
||||
Reference in New Issue
Block a user