Changed payload to Antares format

This commit is contained in:
vmasdani
2019-01-17 17:03:09 +07:00
parent 37e82f2ace
commit 508c58428f
11 changed files with 35 additions and 624 deletions

View File

@@ -4,15 +4,15 @@
#define WIFISSID "your-wifi-ssid"
#define PASSWORD "your-wifi-password"
#define projectName = "your-project-name";
#define deviceName = "your-device-name";
#define projectName "your-project-name"
#define deviceName "your-device-name"
AntaresESP8266MQTT antares(ACCESSKEY);
void callback(char topic[], byte payload[], unsigned int length) {
String topicString = String(topic);
String payloadString = antares.byteToString(payload, length);
Serial.println("[ANTARES] New Mesage: ");
Serial.println(topicString);
Serial.println(payloadString);