Fabio Gatti
/
MultiProtocol_Cloud_copy
das
Diff: main.cpp
- Revision:
- 1:ddef44f2db39
- Parent:
- 0:705a0a684de2
- Child:
- 2:983b7f5dde1e
--- a/main.cpp Thu Jul 26 23:58:14 2018 +0000 +++ b/main.cpp Sun Jul 29 10:15:49 2018 +0000 @@ -18,6 +18,8 @@ #define MQTT_HOST "demo.thingsboard.io" #define MQTT_PORT 1883 #define MQTT_TOPIC "v1/devices/me/telemetry" +#define DEVICE_ACCESS_TOKEN "nNcsYA9xXL8OsEmHd6Cq" + class MQTTNetwork { public: @@ -102,7 +104,7 @@ MQTTNetwork network(&wifi); MQTT::Client<MQTTNetwork, Countdown> client(network); -char assess_token[] = "nNcsYA9xXL8OsEmHd6Cq"; +char assess_token[] = DEVICE_ACCESS_TOKEN; MQTTPacket_connectData conn_data = MQTTPacket_connectData_initializer; conn_data.username.cstring = assess_token;