mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
add gps
This commit is contained in:
parent
f9dffa3b97
commit
c84be29413
47 changed files with 8227 additions and 0 deletions
22
luci-app-gpoint-main/root/usr/share/gpoint/modems/ublox.lua
Normal file
22
luci-app-gpoint-main/root/usr/share/gpoint/modems/ublox.lua
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue