Skip to content

Commit

Permalink
Fix issue with MQTT
Browse files Browse the repository at this point in the history
  • Loading branch information
bergdahl committed Nov 21, 2023
1 parent 64b98ee commit a99d2ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=JBWopr
version=1.0.0-beta1
version=1.0.0-beta2
author=Jonny Bergdahl
maintainer=Jonny Bergdahl <[email protected]>
sentence=Support library for the Unexpected Maker W.O.P.R. boards
Expand Down
4 changes: 2 additions & 2 deletions src/jbwoprmqtt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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));
}

// ====================================================================
Expand Down

0 comments on commit a99d2ed

Please sign in to comment.