|
supla-device
|


Public Types | |
| enum class | IntfType { Unknown = 0 , Ethernet = 1 , WiFi = 2 } |
Public Member Functions | |
| Network (uint8_t ip[4]) | |
| virtual void | onLoadConfig () |
| virtual void | setup ()=0 |
| virtual void | disable ()=0 |
| virtual void | uninit () |
| virtual void | setConfigMode () |
| virtual void | setNormalMode () |
| virtual void | setOfflineMode () |
| void | setTestMode () |
| virtual bool | getMacAddr (uint8_t *) |
| virtual void | setHostname (const char *, int macSize) |
| void | generateHostname (const char *prefix, int macSize, char *output) |
| virtual bool | isIpSetupTimeout () |
| virtual uint32_t | getIP () |
| bool | hasStaticIpConfig () const |
| const NetifConfigBlob & | getNetifConfig () const |
| virtual Supla::Client * | createClient () |
| virtual bool | isReady ()=0 |
| virtual bool | iterate () |
| virtual void | fillStateData (TDSC_ChannelState *channelState) |
| 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 |
| virtual const char * | getIntfName () const |
| bool | isIntfDisabledInConfig () const |
Protected Attributes | |
| 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 = {} |
Static Protected Attributes | |
| static Network * | netIntf = nullptr |
| static Network * | firstNetIntf = nullptr |
| static enum DeviceMode | mode = DEVICE_MODE_NORMAL |