ladyada 2016-08-09 20:15:22 -04:00
parent f8ec7fc08f
commit 665395482e
1 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@
****************************************************/ ****************************************************/
#include <Bridge.h> #include <Bridge.h>
#include <Console.h> #include <Console.h>
#include <YunClient.h> #include <BridgeClient.h>
#include "Adafruit_MQTT.h" #include "Adafruit_MQTT.h"
#include "Adafruit_MQTT_Client.h" #include "Adafruit_MQTT_Client.h"
@ -32,8 +32,8 @@
/************ Global State (you don't need to change this!) ******************/ /************ Global State (you don't need to change this!) ******************/
// Create a YunClient instance to communicate using the Yun's bridge & Linux OS. // Create a BridgeClient instance to communicate using the Yun's bridge & Linux OS.
YunClient client; BridgeClient client;
// Setup the MQTT client class by passing in the WiFi client and MQTT server and login details. // Setup the MQTT client class by passing in the WiFi client and MQTT server and login details.
Adafruit_MQTT_Client mqtt(&client, AIO_SERVER, AIO_SERVERPORT, AIO_USERNAME, AIO_KEY); Adafruit_MQTT_Client mqtt(&client, AIO_SERVER, AIO_SERVERPORT, AIO_USERNAME, AIO_KEY);