feat: add automatic network failover
This commit is contained in:
1 parent
3975bc0b01
commit
50e2b2acba
23 files changed
+600
-86
No files matched your search
@@ -220,7 +220,7 @@ void AlertReporter::onLoop(unsigned long now_ms) {
|
||||
char text[80];
|
||||
AlertFaultPolicy::formatNetworkAlert(
|
||||
text, sizeof(text),
|
||||
strcmp(activeNetworkInterface().mediumName(), "ethernet") == 0
|
||||
activeNetworkInterface().medium() == NetworkMedium::Ethernet
|
||||
? "Ethernet" : "WiFi",
|
||||
r, snap);
|
||||
if (sendChannel(text)) {
|
||||
@@ -230,7 +230,7 @@ void AlertReporter::onLoop(unsigned long now_ms) {
|
||||
char text[80];
|
||||
AlertFaultPolicy::formatNetworkAlert(
|
||||
text, sizeof(text),
|
||||
strcmp(activeNetworkInterface().mediumName(), "ethernet") == 0
|
||||
activeNetworkInterface().medium() == NetworkMedium::Ethernet
|
||||
? "Ethernet" : "WiFi",
|
||||
r, snap);
|
||||
sendChannel(text);
|
||||
|
||||
Reference in new issue
Block a user