1
0
mirror of https://gitee.com/openLuat/LuatOS synced 2025-08-17 22:18:03 +08:00

update: demo/libgnss的nmea上报用qos=0吧,减少流量

This commit is contained in:
Wendal Chen 2023-02-08 18:39:57 +08:00
parent fa869eb623
commit aebc5f81c2

View File

@ -101,7 +101,7 @@ sys.taskInit(function()
end
for k, v in pairs(data) do
if v and v:startsWith("$GNRMC") then
sys.publish("mqtt_pub", "/gnss/" .. mobile.imei() .. "/up/nmea", v, 1)
sys.publish("mqtt_pub", "/gnss/" .. mobile.imei() .. "/up/nmea", v, 0)
end
end
end)