|
supla-device
|


Public Member Functions | |
| ESPETH (uint8_t ethMode) | |
| Constructor for LAN8720 or TLK110 (legacy). | |
| ESPETH (eth_phy_type_t ethType, int32_t phyAddr, int mdc, int mdio, int power, eth_clock_mode_t clkMode) | |
| Constructor for ETH_PHY configuration. | |
| void | setup () override |
| void | disable () override |
| bool | getMacAddr (uint8_t *mac) override |
| const char * | getIntfName () const override |
| void | setHostname (const char *prefix, int macSize) override |
| Public Member Functions inherited from Supla::LAN | |
| const char * | getIntfName () const override |
| uint32_t | getIP () override |
| bool | isReady () override |
| void | onLoadConfig () override |
| void | fillStateData (TDSC_ChannelState *channelState) override |
| void | setIpReady (bool ready) |
| void | setIpv4Addr (uint32_t ip) |
| Public Member Functions inherited from Supla::Network | |
| Network (uint8_t ip[4]) | |
| virtual void | uninit () |
| virtual void | setConfigMode () |
| virtual void | setNormalMode () |
| virtual void | setOfflineMode () |
| void | setTestMode () |
| void | generateHostname (const char *prefix, int macSize, char *output) |
| virtual bool | isIpSetupTimeout () |
| bool | hasStaticIpConfig () const |
| const NetifConfigBlob & | getNetifConfig () const |
| virtual Supla::Client * | createClient () |
| virtual bool | iterate () |
| virtual bool | isWifiConfigRequired () |
| virtual void | setSsid (const char *wifiSsid) |
| virtual void | setPassword (const char *wifiPassword) |
| void | clearTimeCounters () |
| void | setSuplaDeviceClass (SuplaDeviceClass *) |
| void | setSetupNeeded () |
| bool | popSetupNeeded () |
| enum IntfType | getIntfType () const |
| bool | isIntfDisabledInConfig () const |
Static Public Member Functions | |
| static void | networkEventHandler (arduino_event_id_t event) |
| Static Public Member Functions inherited from Supla::Network | |
| static Network * | Instance () |
| static Network * | FirstInstance () |
| static Network * | NextInstance (Network *instance) |
| static Network * | GetInstanceByIP (uint32_t ip) |
| static int | GetNetIntfCount () |
| static void | DisconnectProtocols () |
| static void | Setup () |
| static void | Disable () |
| static void | Uninit () |
| static bool | IsReady () |
| static bool | Iterate () |
| static void | SetConfigMode () |
| static void | SetNormalMode () |
| static void | SetOfflineMode () |
| static void | SetTestMode () |
| static void | SetSetupNeeded () |
| static bool | PopSetupNeeded () |
| static bool | GetMainMacAddr (uint8_t *) |
| static void | SetHostname (const char *prefix, int macSize) |
| static bool | IsIpSetupTimeout () |
| static void | LoadConfig () |
| static void | printData (const char *prefix, const void *buf, const int count) |
| static void | setSSLEnabled (bool enabled) |
Protected Attributes | |
| bool | allowDisable = false |
| int | macSizeForHostname = 0 |
| bool | initDone = false |
| eth_phy_type_t | ethType = ETH_PHY_LAN8720 |
| int32_t | ethAddress = -1 |
| int | mdcPin = 23 |
| int | mdioPin = 18 |
| int | powerPin = -1 |
| eth_clock_mode_t | clkMode = ETH_CLOCK_GPIO17_OUT |
| Protected Attributes inherited from Supla::LAN | |
| bool | isIpReady = false |
| uint32_t | ipv4 = 0 |
| Protected Attributes inherited from Supla::Network | |
| Network * | nextNetIntf = nullptr |
| SuplaDeviceClass * | sdc = nullptr |
| const char * | rootCACert = nullptr |
| unsigned int | rootCACertSize = 0 |
| unsigned char | localIp [4] |
| char | hostname [32] = {} |
| enum IntfType | intfType = IntfType::Unknown |
| bool | setupNeeded = false |
| bool | useLocalIp = false |
| bool | intfDisabledInConfig = false |
| bool | testMode = false |
| NetifConfigBlob | netifConfig = {} |
Additional Inherited Members | |
| Public Types inherited from Supla::Network | |
| enum class | IntfType { Unknown = 0 , Ethernet = 1 , WiFi = 2 } |
| Static Protected Attributes inherited from Supla::Network | |
| static Network * | netIntf = nullptr |
| static Network * | firstNetIntf = nullptr |
| static enum DeviceMode | mode = DEVICE_MODE_NORMAL |
|
inlineexplicit |
Constructor for LAN8720 or TLK110 (legacy).
| ethmode | 0 for LAN8720, 1 for TLK110 |
|
inline |
Constructor for ETH_PHY configuration.
| ethType | ETH type: ETH_PHY_LAN8720, ETH_PHY_TLK110, ETH_PHY_RTL8201, ETH_PHY_DP83848, ETH_PHY_KSZ8041, ETH_PHY_KSZ8081 |
| phyAddr | I2C address |
| mdc | I2C clock GPIO |
| mdio | I2C data GPIO |
| power | Power control GPIO (-1 to disable) |
| clkMode | Clock mode: ETH_CLOCK_GPIO0_IN, ETH_CLOCK_GPIO0_OUT, ETH_CLOCK_GPIO16_OUT, ETH_CLOCK_GPIO17_OUT |
|
inlineoverridevirtual |
Implements Supla::Network.
|
inlineoverridevirtual |
Reimplemented from Supla::Network.
|
inlineoverridevirtual |
Reimplemented from Supla::Network.
|
inlineoverridevirtual |
Reimplemented from Supla::Network.
|
inlineoverridevirtual |
Implements Supla::Network.