Fix saving MQTT port settings #12

This commit is contained in:
Robert Strouse 2023-04-01 13:33:28 -07:00
parent d239ce857a
commit 209a2d7960
7 changed files with 6 additions and 6 deletions

View file

@ -141,6 +141,7 @@ bool MQTTSettings::fromJSON(JsonObject &obj) {
this->parseValueString(obj, "username", this->username, sizeof(this->username));
this->parseValueString(obj, "password", this->password, sizeof(this->password));
this->parseValueString(obj, "rootTopic", this->rootTopic, sizeof(this->rootTopic));
if(obj.containsKey("port")) this->port = obj["port"];
return true;
}
bool MQTTSettings::save() {

View file

@ -3,7 +3,7 @@
#ifndef configsettings_h
#define configsettings_h
#define FW_VERSION "v1.4.4"
#define FW_VERSION "v1.4.5"
enum DeviceStatus {
DS_OK = 0,
DS_ERROR = 1,

View file

@ -1603,7 +1603,6 @@ static const uint32_t tempo_inter_frame_gap = 30415;
static int16_t bitMin = SYMBOL * TOLERANCE_MIN;
static uint16_t timing_index = 0;
//static uint32_t timings[MAX_TIMINGS];
static somfy_rx_t somfy_rx;
static somfy_rx_queue_t rx_queue;

Binary file not shown.

Binary file not shown.

View file

@ -3,10 +3,10 @@
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8">
<link rel="stylesheet" href="main.css?v=1.4.4" type="text/css" />
<link rel="stylesheet" href="icons.css?v=1.4.4" type="text/css" />
<link rel="stylesheet" href="main.css?v=1.4.5" type="text/css" />
<link rel="stylesheet" href="icons.css?v=1.4.5" type="text/css" />
<link rel="icon" type="image/png" href="favicon.png" />
<script type="text/javascript" src="index.js?v=1.4.4"></script>
<script type="text/javascript" src="index.js?v=1.4.5"></script>
</head>
<body>
<div id="divContainer" class="container" style="user-select:none;position:relative;border-radius:27px;">

View file

@ -378,7 +378,7 @@ async function reopenSocket() {
await initSockets();
}
class General {
appVersion = 'v1.4.4';
appVersion = 'v1.4.5';
reloadApp = false;
async init() {
this.setAppVersion();