Skip to content

Commit c1df5f0

Browse files
committed
add dashboard method to main AdafruitIO class
1 parent 72dae8b commit c1df5f0

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

AdafruitIO.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ AdafruitIO_Feed* AdafruitIO::feed(const __FlashStringHelper *name)
9595
return new AdafruitIO_Feed(this, name);
9696
}
9797

98+
AdafruitIO_Dashboard* AdafruitIO::dashboard(const char* name)
99+
{
100+
return new AdafruitIO_Dashboard(this, name);
101+
}
102+
98103
void AdafruitIO::_init()
99104
{
100105

AdafruitIO.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include "Adafruit_MQTT.h"
1717
#include "AdafruitIO_Definitions.h"
1818
#include "AdafruitIO_Feed.h"
19+
#include "AdafruitIO_Dashboard.h"
1920
#include "AdafruitIO_Data.h"
2021
#include "ArduinoHttpClient.h"
2122

@@ -44,6 +45,8 @@ class AdafruitIO {
4445
AdafruitIO_Feed* feed(const char *name);
4546
AdafruitIO_Feed* feed(const __FlashStringHelper *name);
4647

48+
AdafruitIO_Dashboard* dashboard(const char *name);
49+
4750
const __FlashStringHelper* statusText();
4851

4952
aio_status_t status();

0 commit comments

Comments
 (0)