File tree Expand file tree Collapse file tree
platformio/stima_v3/stimawifi/src Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change @@ -549,10 +549,11 @@ String get_remote_rmap_config(){
549549// check and execute firmware update from server
550550void 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
You can’t perform that action at this time.
0 commit comments