Merge branch 'main' of https://git.siwatsystem.com/siwat/cud-iot-v3
This commit is contained in:
commit
6416ead186
|
@ -65,7 +65,6 @@ void setup()
|
||||||
espmega.begin();
|
espmega.begin();
|
||||||
// Initialize IoT Modules
|
// Initialize IoT Modules
|
||||||
espmega.enableIotModule();
|
espmega.enableIotModule();
|
||||||
espmega.enableWebServer(80);
|
|
||||||
// Setup Ethernet
|
// Setup Ethernet
|
||||||
ETH.begin();
|
ETH.begin();
|
||||||
espmega.iot->bindEthernetInterface(Ð);
|
espmega.iot->bindEthernetInterface(Ð);
|
||||||
|
@ -75,6 +74,8 @@ void setup()
|
||||||
// Connect to the MQTT Broker
|
// Connect to the MQTT Broker
|
||||||
espmega.iot->loadMqttConfig();
|
espmega.iot->loadMqttConfig();
|
||||||
espmega.iot->connectToMqtt();
|
espmega.iot->connectToMqtt();
|
||||||
|
// Enable Web Server
|
||||||
|
espmega.enableWebServer(80);
|
||||||
// Initialize Internal Display
|
// Initialize Internal Display
|
||||||
espmega.enableInternalDisplay(&INTERNAL_DISPLAY_UART);
|
espmega.enableInternalDisplay(&INTERNAL_DISPLAY_UART);
|
||||||
// Initialize Air Conditioner
|
// Initialize Air Conditioner
|
||||||
|
|
Loading…
Reference in New Issue