Skip to content

Commit 5226af0

Browse files
author
liujh-milesight
committed
fix: update example format for temperature control in wt201 and wt211 encoders
1 parent 2263315 commit 5226af0

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

vendors/milesight-iot/wt-series/wt201-v2/wt201-v2-encoder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ function setSystemStatusAndTemperatureControl(system_status, temperature_control
761761
* @param {number} mode values: (0: heat, 1: em heat, 2: cool, 3: auto)
762762
* @param {number} target range: [5, 95]
763763
* @param {number} unit values: (0: celsius, 1: fahrenheit)
764-
* @example { "mode": 2, "target": 25, "unit": 0 }
764+
* @example { "temperature_control": { "mode": 2, "target": 25, "unit": 0 } }
765765
*/
766766
function setTemperatureControl(mode, target, unit) {
767767
var mode_map = { 0: "heat", 1: "em heat", 2: "cool", 3: "auto" };

vendors/milesight-iot/wt-series/wt211/wt211-encoder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ function setSystemStatusAndTemperatureControl(system_status, temperature_control
761761
* @param {number} mode values: (0: heat, 1: em heat, 2: cool, 3: auto)
762762
* @param {number} target range: [5, 95]
763763
* @param {number} unit values: (0: celsius, 1: fahrenheit)
764-
* @example { "mode": 2, "target": 25, "unit": 0 }
764+
* @example { "temperature_control": { "mode": 2, "target": 25, "unit": 0 } }
765765
*/
766766
function setTemperatureControl(mode, target, unit) {
767767
var mode_map = { 0: "heat", 1: "em heat", 2: "cool", 3: "auto" };

version.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"date": "2026-05-06",
3-
"version": "1.5.42",
2+
"date": "2026-07-06",
3+
"version": "1.5.43",
44
"vendors": "vendors.json",
55
"link": "https://github.com/Milesight-IoT/codec/archive/refs/heads/release.zip"
66
}

0 commit comments

Comments
 (0)