Skip to content

Commit

Permalink
Merge pull request #345 from bensuffolk/master
Browse files Browse the repository at this point in the history
Make MQTT work with Ethernet
  • Loading branch information
fvanroie authored Jun 19, 2022
2 parents 94f36ba + 5f2ab58 commit 43651ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sys/net/hasp_ethernet_esp32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ void EthernetEvent(WiFiEvent_t event)
}
LOG_TRACE(TAG_ETH, F(D_INFO_LINK_SPEED " %d Mbps"), HASP_ETHERNET.linkSpeed());
eth_connected = true;
networkStart(); // Start network services
network_connected(); // Start network services
break;
case ARDUINO_EVENT_ETH_DISCONNECTED:
LOG_TRACE(TAG_ETH, F(D_SERVICE_DISCONNECTED));
eth_connected = false;
networkStop(); // Stop network services
network_disconnected(); // Stop network services
break;
case ARDUINO_EVENT_ETH_STOP:
LOG_WARNING(TAG_ETH, F(D_SERVICE_STOPPED));
Expand Down

0 comments on commit 43651ca

Please sign in to comment.