dd

Dependencies:   Cayenne-MQTT-mbed mbed ESP8266Interface

Committer:
mikevd1
Date:
Thu May 30 12:01:47 2019 +0000
Revision:
10:b5f8f5911731
Parent:
9:4302de820980
s

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jburhenn 0:803d1a77010e 1 /**
jburhenn 1:9043adf6ae53 2 * Example app for using the Cayenne MQTT C++ library to send and receive example data. This example uses
jburhenn 1:9043adf6ae53 3 * the ESP8266Interface library to connect via WiFi.
jburhenn 0:803d1a77010e 4 */
jburhenn 0:803d1a77010e 5
jburhenn 0:803d1a77010e 6 #include "MQTTTimer.h"
jburhenn 0:803d1a77010e 7 #include "CayenneMQTTClient.h"
jburhenn 0:803d1a77010e 8 #include "MQTTNetwork.h"
jburhenn 0:803d1a77010e 9 #include "ESP8266Interface.h"
jburhenn 0:803d1a77010e 10
jburhenn 0:803d1a77010e 11 // WiFi network info.
mikevd1 10:b5f8f5911731 12 char* ssid = "UPC14575612";
mikevd1 10:b5f8f5911731 13 char* wifiPassword = "BDTKCAES";
jburhenn 0:803d1a77010e 14
jburhenn 0:803d1a77010e 15 /**
jburhenn 0:803d1a77010e 16 * Main function.
jburhenn 0:803d1a77010e 17 */
jburhenn 0:803d1a77010e 18 int main()
jburhenn 0:803d1a77010e 19 {
mikevd1 10:b5f8f5911731 20 wait(5);
mikevd1 10:b5f8f5911731 21 ESP8266Interface interface(PB_6, PA_10, PB_3, ssid, wifiPassword, 115200); // TX, RX, Reset, SSID, Password, Baud
mikevd1 10:b5f8f5911731 22
mikevd1 10:b5f8f5911731 23 ESP8266Interface init() ;
mikevd1 10:b5f8f5911731 24
mikevd1 10:b5f8f5911731 25
mikevd1 10:b5f8f5911731 26
mikevd1 10:b5f8f5911731 27
mikevd1 10:b5f8f5911731 28
jburhenn 0:803d1a77010e 29 }
jburhenn 0:803d1a77010e 30