1
0
mirror of https://github.com/adafruit/Adafruit_MQTT_Library.git synced 2025-06-13 10:01:31 +03:00

simplify feeds in examples

This commit is contained in:
Todd Treece
2016-08-15 15:24:21 -04:00
parent 5e46585e25
commit faad8998f6
6 changed files with 14 additions and 29 deletions

View File

@ -45,10 +45,9 @@ const char* fingerprint = "26 96 1C 2A 51 07 FD 15 80 96 93 AE F7 32 CE B9 0D 01
/****************************** Feeds ***************************************/
// Setup a feed called 'photocell' for publishing.
// Setup a feed called 'test' for publishing.
// Notice MQTT paths for AIO follow the form: <username>/feeds/<feedname>
#define TEST_FEED AIO_USERNAME "/feeds/test"
Adafruit_MQTT_Publish test = Adafruit_MQTT_Publish(&mqtt, TEST_FEED);
Adafruit_MQTT_Publish test = Adafruit_MQTT_Publish(&mqtt, AIO_USERNAME "/feeds/test");
/*************************** Sketch Code ************************************/