library update
This commit is contained in:
parent
410821e898
commit
36280ae2e3
|
@ -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"'
|
|
@ -18,8 +18,9 @@ void setup()
|
||||||
ESP_LOGD("OS", "Binding Ethernet Interface");
|
ESP_LOGD("OS", "Binding Ethernet Interface");
|
||||||
espmega.iot->bindEthernetInterface(Ð);
|
espmega.iot->bindEthernetInterface(Ð);
|
||||||
// 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);
|
||||||
}
|
}
|
Loading…
Reference in New Issue