Skip to content

Commit 03dfaf5

Browse files
committed
stimawifi bug communicating VERSION
1 parent 199c1f2 commit 03dfaf5

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

‎platformio/stima_v3/stimawifi/src/publish_thread.cpp‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -474,11 +474,11 @@ bool publishThread::publish_maint() {
474474
strcat(mqtt_message.topic,"/");
475475
strcat(mqtt_message.topic,"B01213");
476476

477-
strcpy(mqtt_message.payload,"{\"v\":\"conn\",\"s\":");
477+
strcpy(mqtt_message.payload,"{\"v\":\"conn\",\"s\":\"");
478478
strcat(mqtt_message.payload,MAJOR_VERSION);
479-
strcat(mqtt_message.payload,",\"m\":");
479+
strcat(mqtt_message.payload,"\",\"m\":\"");
480480
strcat(mqtt_message.payload,MINOR_VERSION);
481-
strcat(mqtt_message.payload,"} ");
481+
strcat(mqtt_message.payload,"\"} ");
482482

483483
return mqttPublish(mqtt_message, false);
484484
}

‎platformio/stima_v3/stimawifi/src/stimawifi.ino‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,10 +549,11 @@ String get_remote_rmap_config(){
549549
// check and execute firmware update from server
550550
void firmwareUpdate() {
551551

552-
DynamicJsonDocument doc(200);
552+
DynamicJsonDocument doc(200); // 128 is the minimum computed by ArduinoJson Assistant
553553
doc["ver"] = SOFTWARE_VERSION;
554554
doc["user"] = station.user;
555555
doc["slug"] = station.stationslug;
556+
doc["bslug"] = station.boardslug;
556557
char buffer[256];
557558
serializeJson(doc, buffer, sizeof(buffer));
558559

0 commit comments

Comments
 (0)