library update

This commit is contained in:
Siwat Sirichai 2024-10-11 22:09:14 +07:00
parent 410821e898
commit 36280ae2e3
2 changed files with 4 additions and 2 deletions

View File

@ -12,6 +12,6 @@
platform = espressif32 platform = espressif32
board = wt32-eth01 board = wt32-eth01
framework = arduino framework = arduino
lib_deps = siwats/ESPMegaPROR3@^2.9.5 lib_deps = siwats/ESPMegaPROR3@^2.9.7
monitor_speed = 115200 monitor_speed = 115200
build_flags = -DCORE_DEBUG_LEVEL=0 -DSW_VERSION='"walkway-1.0.0"' -DBOARD_MODEL='"ESPMegaPRO R3.3c"' build_flags = -DCORE_DEBUG_LEVEL=0 -DSW_VERSION='"walkway-1.0.0"' -DBOARD_MODEL='"ESPMegaPRO R3.3c"'

View File

@ -18,8 +18,9 @@ void setup()
ESP_LOGD("OS", "Binding Ethernet Interface"); ESP_LOGD("OS", "Binding Ethernet Interface");
espmega.iot->bindEthernetInterface(&ETH); espmega.iot->bindEthernetInterface(&ETH);
// Connect to Network // Connect to Network
ESP_LOGV("OS", "Connecting to Network"); ESP_LOGV("OS", "Loading Network Config");
espmega.iot->loadNetworkConfig(); espmega.iot->loadNetworkConfig();
ESP_LOGV("OS", "Connecting to Network");
espmega.iot->connectNetwork(); espmega.iot->connectNetwork();
// Connect to the MQTT Broker // Connect to the MQTT Broker
ESP_LOGV("OS", "Connecting to MQTT Broker"); ESP_LOGV("OS", "Connecting to MQTT Broker");
@ -42,5 +43,6 @@ void loop()
void input_callback(uint8_t pin, uint8_t state) void input_callback(uint8_t pin, uint8_t state)
{ {
if(state!=1) return;
espmega.outputs.toggleState(pin); espmega.outputs.toggleState(pin);
} }