1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00
This commit is contained in:
suyuan 2022-11-22 03:23:41 +08:00
parent f9dffa3b97
commit c84be29413
47 changed files with 8227 additions and 0 deletions

View file

@ -0,0 +1,22 @@
common_path = '/usr/share/gpoint/lib/?.lua;'
package.path = common_path .. package.path
local nmea = require("nmea")
local ublox = {}
-- Wrapper over the interface, the module does not need an implementation
function ublox.start(port)
return false, {warning = {app = {false, "GOOD!"}, locator = {}, server = {}}}
end
function ublox.stop(port)
return {false, "OK"}
end
-- get GNSS data for application
function ublox.getGNSSdata(port)
return nmea.getAllData(port)
end
return ublox