Skip to content

Commit 06c2707

Browse files
committed
add group to main io class
1 parent 41d9d76 commit 06c2707

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/AdafruitIO.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ AdafruitIO_Feed* AdafruitIO::feed(const char* name)
7575
return new AdafruitIO_Feed(this, name);
7676
}
7777

78+
AdafruitIO_Group* AdafruitIO::group(const char* name)
79+
{
80+
return new AdafruitIO_Group(this, name);
81+
}
82+
7883
AdafruitIO_Dashboard* AdafruitIO::dashboard(const char* name)
7984
{
8085
return new AdafruitIO_Dashboard(this, name);

src/AdafruitIO.h

Lines changed: 3 additions & 1 deletion
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_Group.h"
1920
#include "AdafruitIO_Dashboard.h"
2021
#include "AdafruitIO_Data.h"
2122
#include "ArduinoHttpClient.h"
@@ -31,6 +32,7 @@
3132
class AdafruitIO {
3233

3334
friend class AdafruitIO_Feed;
35+
friend class AdafruitIO_Group;
3436
friend class AdafruitIO_Dashboard;
3537
friend class AdafruitIO_Block;
3638

@@ -43,7 +45,7 @@ class AdafruitIO {
4345
void run(uint16_t busywait_ms = 0);
4446

4547
AdafruitIO_Feed* feed(const char *name);
46-
48+
AdafruitIO_Group* group(const char *name);
4749
AdafruitIO_Dashboard* dashboard(const char *name);
4850

4951
const __FlashStringHelper* statusText();

0 commit comments

Comments
 (0)