File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,26 @@ class AdafruitIO_Data;
21
21
22
22
typedef void (*AdafruitIODataCallbackType)(AdafruitIO_Data *data);
23
23
24
+ class AdafruitIOGroupCallback {
25
+ public:
26
+ AdafruitIOGroupCallback (const char *f, AdafruitIODataCallbackType cb) {
27
+ feed = f;
28
+ dataCallback = cb;
29
+ next_cb = 0 ;
30
+ }
31
+
32
+ AdafruitIOGroupCallback (AdafruitIODataCallbackType cb) {
33
+ feed = 0 ;
34
+ dataCallback = cb;
35
+ next_cb = 0 ;
36
+ }
37
+
38
+ const char *feed;
39
+ AdafruitIODataCallbackType dataCallback;
40
+ AdafruitIOGroupCallback *next_cb;
41
+
42
+ };
43
+
24
44
// uncomment/comment to turn on/off error output
25
45
#define AIO_ERROR
26
46
@@ -43,7 +63,7 @@ typedef void (*AdafruitIODataCallbackType)(AdafruitIO_Data *data);
43
63
44
64
#define AIO_SSL_FINGERPRINT " 26 96 1C 2A 51 07 FD 15 80 96 93 AE F7 32 CE B9 0D 01 55 C4"
45
65
46
- #define AIO_DATA_LENGTH 41
66
+ #define AIO_DATA_LENGTH 45
47
67
48
68
typedef enum {
49
69
You can’t perform that action at this time.
0 commit comments