From ae0b4778a15a857343a46b6a18d06456300fdf39 Mon Sep 17 00:00:00 2001 From: Todd Treece Date: Wed, 3 Jun 2015 17:13:41 -0400 Subject: [PATCH] updates aio mqtt auth info in cc3k example --- examples/mqtt_cc3k/mqtt_cc3k.ino | 2 +- examples/mqtt_cc3k/mqtt_config.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/mqtt_cc3k/mqtt_cc3k.ino b/examples/mqtt_cc3k/mqtt_cc3k.ino index 40e2bf7..2d90918 100644 --- a/examples/mqtt_cc3k/mqtt_cc3k.ino +++ b/examples/mqtt_cc3k/mqtt_cc3k.ino @@ -11,7 +11,7 @@ Adafruit_CC3000 cc3000 = Adafruit_CC3000(ADAFRUIT_CC3000_CS, ADAFRUIT_CC3000_IRQ, ADAFRUIT_CC3000_VBAT, SPI_CLOCK_DIV2); // you can change this clock speed -Adafruit_MQTT_CC3000 mqtt(&cc3000, AIO_SERVER, AIO_SERVERPORT, AIO_CLIENTNAME, AIO_KEY, AIO_PASSWORD); +Adafruit_MQTT_CC3000 mqtt(&cc3000, AIO_SERVER, AIO_SERVERPORT, AIO_CLIENTNAME, AIO_USERNAME, AIO_KEY); const char PHOTOCELL_FEED[] PROGMEM = "api/feeds/photocell/data/send.json"; Adafruit_MQTT_Publish photocell = Adafruit_MQTT_Publish(&mqtt, PHOTOCELL_FEED); diff --git a/examples/mqtt_cc3k/mqtt_config.h b/examples/mqtt_cc3k/mqtt_config.h index 644c485..b1389e3 100644 --- a/examples/mqtt_cc3k/mqtt_config.h +++ b/examples/mqtt_cc3k/mqtt_config.h @@ -22,8 +22,8 @@ const char AIO_SERVER[] PROGMEM = "io.adafruit.com"; #define AIO_SERVERPORT 1883 const char AIO_CLIENTNAME[] PROGMEM = "huzzah"; +const char AIO_USERNAME[] PROGMEM = ""; const char AIO_KEY[] PROGMEM = ""; -const char AIO_PASSWORD[] PROGMEM = "";