Skip to content

Commit 1d349ca

Browse files
author
brentru
committed
add comments for doxygen
1 parent d873588 commit 1d349ca

File tree

1 file changed

+41
-4
lines changed

1 file changed

+41
-4
lines changed

src/AdafruitIO_AIRLIFT.h

Lines changed: 41 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,27 @@
2929
#define ESP32_GPIO0 -1 // Not connected
3030
#endif
3131

32+
/****************************************************************************/
33+
/*!
34+
@brief Class that stores functions for interacting with AirLift Devices
35+
*/
36+
/****************************************************************************/
3237
class AdafruitIO_AIRLIFT : public AdafruitIO {
3338

3439
public:
40+
/**************************************************************************/
41+
/*!
42+
@brief Initializes the Adafruit IO class for AirLift devices.
43+
@param user
44+
A reference to the Adafruit IO user, shared by AdafruitIO.
45+
@param key
46+
A reference to the Adafruit IO Key, shared by AdafruitIO.
47+
@param ssid
48+
A reference to the WiFi network SSID.
49+
@param pass
50+
A reference to the WiFi network password.
51+
*/
52+
/**************************************************************************/
3553
AdafruitIO_AIRLIFT(const char *user, const char *key, const char *ssid, const char *pass):AdafruitIO(user, key)
3654
{
3755
_ssid = ssid;
@@ -42,6 +60,11 @@ class AdafruitIO_AIRLIFT : public AdafruitIO {
4260
_http = new HttpClient(*_http_client, _host, _http_port);
4361
}
4462

63+
/**************************************************************************/
64+
/*!
65+
@brief Destructor for the Adafruit IO AirLift class.
66+
*/
67+
/**************************************************************************/
4568
~AdafruitIO_AIRLIFT()
4669
{
4770
if (_mqtt_client)
@@ -54,6 +77,12 @@ class AdafruitIO_AIRLIFT : public AdafruitIO {
5477
delete _http;
5578
}
5679

80+
/********************************************************/
81+
/*!
82+
@brief Returns the network status of an AirLift module.
83+
@return aio_status_t
84+
*/
85+
/********************************************************/
5786
aio_status_t networkStatus()
5887
{
5988
switch (WiFi.status())
@@ -69,22 +98,30 @@ class AdafruitIO_AIRLIFT : public AdafruitIO {
6998
}
7099
}
71100

101+
/*****************************************************************/
102+
/*!
103+
@brief Returns the type of network connection used by AdafruitIO.
104+
@return AIRLIFT
105+
*/
106+
/*****************************************************************/
72107
const char *connectionType()
73108
{
74109
return "AIRLIFT";
75110
}
76111

77-
//aio_status_t networkStatus();
78-
//const char* connectionType();
79-
80112
protected:
81-
//void _connect();
82113
const char *_ssid;
83114
const char *_pass;
84115

85116
WiFiSSLClient *_http_client;
86117
WiFiSSLClient *_mqtt_client;
87118

119+
/**************************************************************************/
120+
/*!
121+
@brief Attempts to establish a WiFi connection with the wireless network,
122+
given _ssid and _pass from the AdafruitIO_AIRLIFT constructor.
123+
*/
124+
/**************************************************************************/
88125
void _connect()
89126
{
90127
// for breakouts, check if the pins would be externally defined

0 commit comments

Comments
 (0)