4877保存已选的配组

This commit is contained in:
liub
2025-12-03 11:42:05 +08:00
parent e2d07e984f
commit 6414bf3d7a
3 changed files with 218 additions and 2 deletions

View File

@ -286,7 +286,9 @@ class MqttClient {
const mqttMessage = new Paho.Message(message);
mqttMessage.destinationName = topic;
mqttMessage.qos = 1;
console.log("typeof(retained)=",typeof(retained))
if(typeof(retained)==='boolean'){
console.log("retained=",retained)
mqttMessage.retained=retained;
}