From b710c19c6d833db3f56ac810d847bc6e5a149118 Mon Sep 17 00:00:00 2001 From: Stuart Feichtinger Date: Sun, 31 Jan 2016 20:45:29 -0600 Subject: [PATCH] Tweak --- Adafruit_MQTT.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Adafruit_MQTT.cpp b/Adafruit_MQTT.cpp index 3b6dca5..253d633 100644 --- a/Adafruit_MQTT.cpp +++ b/Adafruit_MQTT.cpp @@ -233,9 +233,9 @@ bool Adafruit_MQTT::publish(const char *topic, const char *data, uint8_t qos) { return publish(topic, (uint8_t*)(data), strlen(data), qos); } -bool Adafruit_MQTT::publish(const char *topic, uint8_t *sData, uint8_t bLen, uint8_t qos) { +bool Adafruit_MQTT::publish(const char *topic, uint8_t *data, uint8_t bLen, uint8_t qos) { // Construct and send publish packet. - uint8_t len = publishPacket(buffer, topic, sData, bLen, qos); + uint8_t len = publishPacket(buffer, topic, data, bLen, qos); if (!sendPacket(buffer, len)) return false;