15 #ifndef ADAFRUITIO_ETHERNET_H 16 #define ADAFRUITIO_ETHERNET_H 18 #include "Adafruit_MQTT.h" 19 #include "Adafruit_MQTT_Client.h" 26 #include <EthernetClient.h> 63 if (
_status == AIO_NET_CONNECTED)
79 byte
_mac[6] = {0xDE, 0xAD, 0xBE,
90 if (Ethernet.begin(_mac) == 0) {
92 if (Ethernet.hardwareStatus() == EthernetNoHardware) {
94 "wiring connections.");
114 #endif // ADAFRUITIO_ETHERNET_H Class for interacting with Adafruit IO.
Definition: AdafruitIO.h:45
const char * _username
Definition: AdafruitIO.h:158
aio_status_t _status
Definition: AdafruitIO.h:138
byte _mac[6]
Definition: AdafruitIO_Ethernet.h:79
uint16_t _http_port
Definition: AdafruitIO.h:153
void _connect()
Attempts to connect Ethernet FeatherWing to Adafruit IO.
Definition: AdafruitIO_Ethernet.h:89
uint16_t _mqtt_eth_port
Definition: AdafruitIO.h:151
AdafruitIO_Ethernet(const char *user, const char *key)
Instanciates an Adafruit Ethernet FeatherWing.
Definition: AdafruitIO_Ethernet.h:47
#define AIO_NET_DISCONNECT_WAIT
Time to wait for a net disconnect to take effect.
Definition: AdafruitIO_Definitions.h:116
Adafruit_MQTT * _mqtt
Definition: AdafruitIO.h:144
Class for interfacing with the Adafruit Ethernet FeatherWing.
Definition: AdafruitIO_Ethernet.h:35
EthernetClient * _client
Definition: AdafruitIO_Ethernet.h:82
#define AIO_DEBUG_PRINTLN(...)
Prints line from debug output.
Definition: AdafruitIO_Definitions.h:89
aio_status_t networkStatus()
Checks the connection status between the Ethernet FeatherWing and Adafruit IO.
Definition: AdafruitIO_Ethernet.h:62
const char * _host
Definition: AdafruitIO.h:149
void _disconnect()
Disconnect the ethernet connection.
Definition: AdafruitIO_Ethernet.h:108
const char * connectionType()
Defines network module type.
Definition: AdafruitIO_Ethernet.h:76
aio_status_t
Definition: AdafruitIO_Definitions.h:142
const char * _key
Definition: AdafruitIO.h:159
HttpClient * _http
Definition: AdafruitIO.h:145