https://en-forum.supla.org/viewtopic.ph ... 20#p116011
oraz przykładowego szkicu RGBW_WT32_ETH01.ino
chcę skompilować ESP32 + LAN8720 do komunikacji po kablu
Niestety szkic oparty jest na wcześniejszych bibliotekach i inicjowanie w stylu;
Code: Select all
...
#include <SuplaDevice.h>
#include <supla/network/esp32eth.h>
Supla::ESPETH Eth(1); // uint_t ETH_ADDR = I²C-address of Ethernet PHY (0 or 1)
...
Code: Select all
lib/supla-device-25.6/src/supla/network/esp32eth.h: In member function 'virtual void Supla::ESPETH::setup()':
lib/supla-device-25.6/src/supla/network/esp32eth.h:128:7: error: '::Network' has not been declared
::Network.onEvent(Supla::ESPETH::networkEventHandler);
^~~~~~~
lib/supla-device-25.6/src/supla/network/esp32eth.h:128:7: note: suggested alternative:
In file included from lib/supla-device-25.6/src/SuplaDevice.h:21,
from src/main.cpp:73:
lib/supla-device-25.6/src/supla/network/network.h:36:7: note: 'Supla::Network'
class Network {
^~~~~~~
In file included from src/main.cpp:74:
lib/supla-device-25.6/src/supla/network/esp32eth.h:52:23: error: invalid conversion from 'int' to 'eth_phy_type_t' [-fpermissive]
#define ETH_POWER_PIN -1
^~
lib/supla-device-25.6/src/supla/network/esp32eth.h:135:15: note: in expansion of macro 'ETH_POWER_PIN'
ETH_POWER_PIN,
adekwatnego dla aktualnej biblioteki; supla-device-25.6 (Arduino 3.1.3)
ewentualnie wskazanie czego mi brakuje ?
