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- /* *************************************************************************/
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+ /* *************************************************************************/
4747 AdafruitIO_Ethernet (const char *user, const char *key)
4848 : AdafruitIO(user, key) {
4949 _client = new EthernetClient ();
@@ -52,14 +52,14 @@ class AdafruitIO_Ethernet : public AdafruitIO {
5252 _http = new HttpClient (*_client, _host, _http_port);
5353 }
5454
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- /* *************************************************************************/
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+ /* *************************************************************************/
6363 aio_status_t networkStatus () {
6464 if (_status == AIO_NET_CONNECTED)
6565 return _status;
@@ -68,19 +68,24 @@ class AdafruitIO_Ethernet : public AdafruitIO {
6868 return _status;
6969 }
7070
71- /* *************************************************************************/
72- /* !
73- @brief Defines network module type.
74- @return String "ethernet_wing"
75- */
76- /* *************************************************************************/
71+ /* *************************************************************************/
72+ /* !
73+ @brief Defines network module type.
74+ @return String "ethernet_wing"
75+ */
76+ /* *************************************************************************/
7777 const char *connectionType () { return " ethernet_wing" ; }
7878
7979protected:
8080 byte _mac[6 ] = {0xDE , 0xAD , 0xBE , 0xEF , 0xFE , 0xED }; /* !< Ethernet FeatherWing MAC Address */
8181
8282 EthernetClient *_client; /* !< Reference to EthernetClient, _client */
8383
84+ /* *************************************************************************/
85+ /* !
86+ @brief Attempts to connect Ethernet FeatherWing to Adafruit IO
87+ */
88+ /* *************************************************************************/
8489 void _connect () {
8590 if (Ethernet.begin (_mac) == 0 ) {
8691 _status = AIO_NET_DISCONNECTED;
0 commit comments