Changes for page 2 Script

Last modified by Devin Chen on 2025/06/06 14:03

From version 39.1
edited by Hunter
on 2023/03/17 15:50
Change comment: There is no comment for this version
To version 40.1
edited by Hunter
on 2023/03/17 16:04
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -541,6 +541,11 @@
541 541   g_mq:subscribe(SUBSCRIBE_TOPIC, 0)
542 542  end
543 543  
544 +--Offline callback function
545 +function mqtt_msg_offline(cause)
546 + print("mqtt offline, cause:", cause)
547 +end
548 +
544 544  -- Received message callback function
545 545  function mqtt_msg_callback(topic, msg)
546 546   print("topic:", topic)