Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

time format #2

Closed
athtest800 opened this issue Jul 6, 2016 · 2 comments
Closed

time format #2

athtest800 opened this issue Jul 6, 2016 · 2 comments

Comments

@athtest800
Copy link

athtest800 commented Jul 6, 2016

Hi again!
I use loraserver the - "lora gateway bridge 1.1.5" and i have the following error
time="2016-07-06T10:50:57+03:00" level=info msg="gateway: received udp packet from gateway" addr=192.168.200.160:15274 type=PushData time="2016-07-06T10:50:57+03:00" level=error msg="gateway: could not handle packet: parsing time \"\"2016-07-06T07:51:59.396440Z\"\" as \"\"2006-01-02 15:04:05 MST\"\": cannot parse \"T07:51:59.396440Z\"\" as \" \"" addr=192.168.200.160:15274 data_base64="Ad/FABj+NP//of9jeyJzdGF0Ijp7InJ4ZnciOjIsImFsdGkiOjAsImxhdGkiOjAuMCwicnhvayI6MiwiZGVzYyI6IkVTUDgyNjYgR2F0ZXdheSAoTHVhKSIsImxvbmciOjAuMCwicGZybSI6IkVTUDgyNjYiLCJ0aW1lIjoiMjAxNi0wNy0wNlQwNzo1MTo1OS4zOTY0NDBaIiwidHhuYiI6MCwibWFpbCI6IiIsImR3bmIiOjAsInJ4bmIiOjIsImFja3IiOjg4Ljh9fQ==" time="2016-07-06T10:50:57+03:00" level=info msg="gateway: received udp packet from gateway" addr=192.168.200.160:15274 type=PullData

It seems that the format that the gateway sends it is wrong.

@JaapBraam
Copy link
Owner

I try to follow https://raw.githubusercontent.com/Lora-net/packet_forwarder/master/PROTOCOL.TXT as precise as possible.

It states:
time | string | UTC time of pkt RX, us precision, ISO 8601 'compact' format

I use The Things Network routers to test, and those routers understand the timeformat..

@JaapBraam JaapBraam reopened this Sep 21, 2016
@JaapBraam
Copy link
Owner

I fixed the date/time format in the stat message to be YYYY-MM-DD HH-MM-SS GMT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants