Example of sending MQTT data to MyDevices Cayenne using the MTSAS library
Dependencies: Cayenne-MQTT-mbed-MTSAS X_NUCLEO_IKS01A1 mbed mtsas_lat3
Diff: main.cpp
- Revision:
- 6:cd0be5cc1943
- Parent:
- 5:960d9d8974c8
- Child:
- 7:12131978176d
diff -r 960d9d8974c8 -r cd0be5cc1943 main.cpp --- a/main.cpp Mon Nov 20 21:19:07 2017 +0000 +++ b/main.cpp Mon Nov 20 21:25:46 2017 +0000 @@ -15,9 +15,9 @@ typedef CayenneMQTT::MQTTClient<MQTTNetwork<Cellular>, MQTTTimer> MQTTClient; // Cayenne authentication info. This should be obtained from the Cayenne Dashboard. -string username = "da497640-dcce-11e6-b089-9f6bfa78ab33"; -string password = "68e890972b6cc0fc47fcd152554db7e78ec9b29f"; -string clientID = "5fee1000-aeaa-11e7-98fe-97ee227ec16c"; +string username = "MQTT-Username"; +string password = "MQTT-Password"; +string clientID = "MQTT-ClientID"; DigitalOut Led1Out(D1); DigitalOut Led2Out(D0);