This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

GPS for LM-IoT-Edge
#3
(04.08.2022, 06:53)admin Wrote: The only solution at this moment is to read the data using Lua serial library and then parse it. This library can be used for parsing: https://github.com/1nv1/luaGPS

And how do i read from the device? A quick test with:
Code:
require('serial')
port, err = serial.open('/dev/ttyUSB1')
log(port, err)
-- script will wait for 10 characters for 20 seconds
data, err = port:read(10, 20)
log(data, err)
Only gave me this output:
Code:
test 04.08.2022 16:41:51
* arg: 1
  * luaserial
* arg: 2
  * nil
test 04.08.2022 16:42:11
* arg: 1
  * nil
* arg: 2
  * string: timeout
Reply


Messages In This Thread
GPS for LM-IoT-Edge - by hummelsystemhaus - 03.08.2022, 08:41
RE: GPS for LM-IoT-Edge - by admin - 04.08.2022, 06:53
RE: GPS for LM-IoT-Edge - by hummelsystemhaus - 04.08.2022, 14:44
RE: GPS for LM-IoT-Edge - by admin - 04.08.2022, 14:48

Forum Jump: