3535class AdafruitIO_Ethernet : public AdafruitIO {
3636
3737public:
38+ /* *************************************************************************/
39+ /* !
40+ @brief Instanciates an Adafruit Ethernet FeatherWing.
41+ @param *user
42+ Reference to a valid Adafruit IO Username.
43+ @param *key
44+ Reference to a valid Adafruit IO Key.
45+ */
46+ /* *************************************************************************/
3847 AdafruitIO_Ethernet (const char *user, const char *key)
3948 : AdafruitIO(user, key) {
4049 _client = new EthernetClient ();
@@ -43,6 +52,14 @@ class AdafruitIO_Ethernet : public AdafruitIO {
4352 _http = new HttpClient (*_client, _host, _http_port);
4453 }
4554
55+ /* *************************************************************************/
56+ /* !
57+ @brief Checks the connection status between the Ethernet
58+ FeatherWing and Adafruit IO
59+ @return AIO_NET_CONNECTED if connected to Adafruit IO,
60+ otherwise AIO_NET_DISCONNECTED.
61+ */
62+ /* *************************************************************************/
4663 aio_status_t networkStatus () {
4764 if (_status == AIO_NET_CONNECTED)
4865 return _status;
@@ -51,12 +68,18 @@ class AdafruitIO_Ethernet : public AdafruitIO {
5168 return _status;
5269 }
5370
71+ /* *************************************************************************/
72+ /* !
73+ @brief Defines network module type.
74+ @return String "ethernet_wing"
75+ */
76+ /* *************************************************************************/
5477 const char *connectionType () { return " ethernet_wing" ; }
5578
5679protected:
57- byte _mac[6 ] = {0xDE , 0xAD , 0xBE , 0xEF , 0xFE , 0xED };
80+ byte _mac[6 ] = {0xDE , 0xAD , 0xBE , 0xEF , 0xFE , 0xED }; /* !< Ethernet FeatherWing MAC Address */
5881
59- EthernetClient *_client;
82+ EthernetClient *_client; /* !< Reference to EthernetClient, _client */
6083
6184 void _connect () {
6285 if (Ethernet.begin (_mac) == 0 ) {
0 commit comments