supla-device
Loading...
Searching...
No Matches
Supla::ENC28J60 Class Reference
Inheritance diagram for Supla::ENC28J60:
Collaboration diagram for Supla::ENC28J60:

Public Member Functions

 ENC28J60 (uint8_t mac[6], unsigned char *ip=NULL)
void disable () override
bool isReady () override
void setup () override
Public Member Functions inherited from Supla::Network
 Network (uint8_t ip[4])
virtual void onLoadConfig ()
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 ()
virtual Supla::ClientcreateClient ()
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

uint8_t mac [6] = {}
Protected Attributes inherited from Supla::Network
Network * nextNetIntf = nullptr
SuplaDeviceClasssdc = 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

Additional Inherited Members

Public Types inherited from Supla::Network
enum class  IntfType { Unknown = 0 , Ethernet = 1 , WiFi = 2 }
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)
Static Protected Attributes inherited from Supla::Network
static Network * netIntf = nullptr
static Network * firstNetIntf = nullptr
static enum DeviceMode mode = DEVICE_MODE_NORMAL

Member Function Documentation

◆ disable()

void Supla::ENC28J60::disable ( )
inlineoverridevirtual

Implements Supla::Network.

◆ isReady()

bool Supla::ENC28J60::isReady ( )
inlineoverridevirtual

Implements Supla::Network.

◆ setup()

void Supla::ENC28J60::setup ( )
inlineoverridevirtual

Implements Supla::Network.


The documentation for this class was generated from the following file: