From bebffa040f8ed1eaa6d727f171855f981f0de922 Mon Sep 17 00:00:00 2001 From: UBWH <72185209+UBWH@users.noreply.github.com> Date: Mon, 25 Dec 2023 16:13:32 +0800 Subject: [PATCH] Update xdrv_58_range_extender.ino (#20295) RESULT to RgxSSId command is not valid JSON BEFORE: RSL: RESULT = {"Rgx":{"Valid":"true","SSId":"solar_5BDBFC","Password":"MyPassword","IPAddress":"192.168.99.1","Subnetmask":"255.255.255.0"} AFTER RSL: RESULT = {"Rgx":{"Valid":"true","SSId":"solar_5BDBFC","Password":"MyPassword","IPAddress":"192.168.99.1","Subnetmask":"255.255.255.0"}} Not extra terminating '}' --- tasmota/tasmota_xdrv_driver/xdrv_58_range_extender.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_58_range_extender.ino b/tasmota/tasmota_xdrv_driver/xdrv_58_range_extender.ino index 3868dde46..d72880649 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_58_range_extender.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_58_range_extender.ino @@ -377,7 +377,7 @@ void CmndRgxPort(void) void ResponseRgxConfig(void) { RgxCheckConfig(); - Response_P(PSTR("{\"Rgx\":{\"Valid\":\"%s\",\"" D_CMND_SSID "\":\"%s\",\"" D_CMND_PASSWORD "\":\"%s\",\"" D_CMND_IPADDRESS "\":\"%_I\",\"" D_JSON_SUBNETMASK "\":\"%_I\"}"), + Response_P(PSTR("{\"Rgx\":{\"Valid\":\"%s\",\"" D_CMND_SSID "\":\"%s\",\"" D_CMND_PASSWORD "\":\"%s\",\"" D_CMND_IPADDRESS "\":\"%_I\",\"" D_JSON_SUBNETMASK "\":\"%_I\"}}"), (RgxSettings.status == RGX_CONFIG_INCOMPLETE) ? "false" : "true", EscapeJSONString(SettingsText(SET_RGX_SSID)).c_str(), EscapeJSONString(SettingsText(SET_RGX_PASSWORD)).c_str(), @@ -529,4 +529,4 @@ bool Xdrv58(uint32_t function) return result; } -#endif // USE_WIFI_RANGE_EXTENDER \ No newline at end of file +#endif // USE_WIFI_RANGE_EXTENDER