Skip to content

Commit e07a5f5

Browse files
author
brentru
committed
update examples, bump version
1 parent 884c33a commit e07a5f5

File tree

4 files changed

+20
-3
lines changed

4 files changed

+20
-3
lines changed

examples/adafruitio_11_group_pub/adafruitio_11_group_pub.ino

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ void setup() {
3737
Serial.print("Connecting to Adafruit IO");
3838
io.connect();
3939

40+
group->onMessage("count-1", one);
41+
group->onMessage("count-2", two);
42+
4043
// wait for a connection
4144
while(io.status() < AIO_CONNECTED) {
4245
Serial.print(".");
@@ -74,3 +77,17 @@ void loop() {
7477
// wait four seconds (1000 milliseconds == 1 second)
7578
delay(4000);
7679
}
80+
81+
// this function is called whenever a 'counter-1' message
82+
// is received from Adafruit IO. it was attached to
83+
// the counter-1 feed in the setup() function above.
84+
void one(AdafruitIO_Data *data) {
85+
// do nothing!
86+
}
87+
88+
// this function is called whenever a 'counter-2' message
89+
// is received from Adafruit IO. it was attached to
90+
// the counter-2 feed in the setup() function above.
91+
void two(AdafruitIO_Data *data) {
92+
// do nothing!
93+
}

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Adafruit IO Arduino
2-
version=3.4.0
2+
version=3.5.0
33
author=Adafruit
44
maintainer=Adafruit <adafruitio@adafruit.com>
55
sentence=Arduino library to access Adafruit IO.

src/AdafruitIO_Definitions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#define ADAFRUITIO_DEFINITIONS_H_
1818

1919
#define ADAFRUITIO_VERSION_MAJOR 3 ///< Adafruit IO Arduino Major Semvar
20-
#define ADAFRUITIO_VERSION_MINOR 2 ///< Adafruit IO Arduino Minor Semvar
20+
#define ADAFRUITIO_VERSION_MINOR 5 ///< Adafruit IO Arduino Minor Semvar
2121
#define ADAFRUITIO_VERSION_PATCH 0 ///< Adafruit IO Arduino Patch Semvar
2222

2323
// forward declaration

src/AdafruitIO_Group.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,4 @@ class AdafruitIO_Group : public AdafruitIO_MQTT {
8282
double _lat, _lon, _ele; /*!< latitude, longitude, elevation metadata. */
8383
};
8484

85-
#endif // ADAFRUITIO_GROUP_H
85+
#endif // ADAFRUITIO_GROUP_H

0 commit comments

Comments
 (0)