Skip to content

Commit d7351f7

Browse files
committed
Should fix UTF8 issue, not tested
1 parent 0b2306c commit d7351f7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

DotMatrixDisplay/DotMatrixDisplay.ino

+3-2
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ int parolaAnimationSpeed;
7676
int parolaPause;
7777
bool parolaIntensityManagedBySensor = true; // light sensor management on/off
7878
bool newMessageAvailable = false;
79-
int LIGHT_SENSOR_POLLING=60*1000; // Wait 5 sec to adjust LED matrix intensity based on light sensor
79+
int LIGHT_SENSOR_POLLING=60*1000; // Wait 5 sec to adjust LED matrix intensity based on light sensor
8080
MD_Parola parola = MD_Parola(CS_PIN, MAX_DEVICES); // HARDWARE SPI for dot matrix display
8181
uint8_t pin_led = 16;
8282

@@ -87,7 +87,7 @@ const char* MQTT_TOPIC_SENSOR_DEVICE = "ESP8266_LED_MATRIX_BOX"; // M
8787
const char* MQTT_CLIENT_ID ="ESP32Client"; // MQTT client id needed to get offline messages during reconnexion | not working mqtt lib doesnot support clean session
8888
const IPAddress MQTT_BROKER_IP(37,187,1,120); // MQTT BROKER IP address
8989
const int MQTT_BROKER_PORT = 1883; // MQTT BROKER port
90-
const int MQTT_POLLING_SENSOR = 15*60*1000; // MQTT polling delay between sending temperature to jeedom in millisec
90+
const int MQTT_POLLING_SENSOR = 15*60*1000; // MQTT polling delay between sending temperature to jeedom in millisec
9191

9292
WiFiClient wifiClient;
9393
WiFiManager wifiManager;
@@ -342,6 +342,7 @@ void mqttCallback(char* topic, byte* payload, unsigned int length) {
342342
if (root["text"] != "") {
343343
String text = root["text"].as<String>();
344344
text.toCharArray(parolaCurrentMessage, text.length()+1);
345+
utf8Ascii(parolaCurrentMessage);
345346

346347
} else {
347348
strcpy (parolaCurrentMessage, "empty text");

0 commit comments

Comments
 (0)