diff --git a/library.properties b/library.properties index 7febcfe..684a21b 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=JBWopr -version=1.0.0-beta1 +version=1.0.0-beta2 author=Jonny Bergdahl maintainer=Jonny Bergdahl sentence=Support library for the Unexpected Maker W.O.P.R. boards diff --git a/src/jbwoprmqtt.cpp b/src/jbwoprmqtt.cpp index 394f30c..d52ab0b 100644 --- a/src/jbwoprmqtt.cpp +++ b/src/jbwoprmqtt.cpp @@ -117,7 +117,7 @@ void JBWoprMqttDevice::displayClear() { void JBWoprMqttDevice::displaySetBrightness(uint8_t val) { JBWoprWiFiDevice::displaySetBrightness(val); - mqttPublishMessage(_getTopic(ENTITY_NAME_DISPLAY, SUBENTITY_NAME_BRIGHTNESS), val); + mqttPublishMessage(_getTopic(ENTITY_NAME_DISPLAY, SUBENTITY_NAME_BRIGHTNESS), std::to_string(val)); } void JBWoprMqttDevice::displayShowText(const char* text, JBTextAlignment alignment) { @@ -186,7 +186,7 @@ void JBWoprMqttDevice::defconLedsSetBrightness(uint8_t brightness) { void JBWoprMqttDevice::defconLedSetColor(JBDefconLevel level, uint32_t color) { JBWoprWiFiDevice::defconLedSetColor(level, color); - mqttPublishMessage(_getTopic(ENTITY_NAME_DEFCON, SUBENTITY_NAME_COLOR), color); + mqttPublishMessage(_getTopic(ENTITY_NAME_DEFCON, SUBENTITY_NAME_COLOR), JBStringHelper::rgbToString(color)); } // ====================================================================