An AirVantage layer for MQTT
Diff: AV_MQTT.cpp
- Revision:
- 1:7f1a11a70a2b
- Parent:
- 0:37b9835622f9
- Child:
- 6:b251f6276497
--- a/AV_MQTT.cpp Thu Aug 08 16:08:18 2013 +0000 +++ b/AV_MQTT.cpp Fri Aug 09 12:13:54 2013 +0000 @@ -5,8 +5,6 @@ topic = new char[strlen(username) + 15]; strcpy(topic, username); strcat(topic, "/messages/json"); - printf(topic); - client.sub(topic); } void AV_MQTT::pub(char *key, char *value) { @@ -18,6 +16,5 @@ strcat(json, "\":[{\"timestamp\":null,\"value\":"); strcat(json, value); strcat(json, "}]}]"); - printf(json); client.pub(topic, json); } \ No newline at end of file