mirror of
https://github.com/gabrielkheisa/antares-esp8266-mqtt.git
synced 2025-08-21 11:31:09 +00:00
Changed payload to Antares format
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user