chirpstack / chirpstack-gateway-bridge

ChirpStack Gateway Bridge abstracts Packet Forwarder protocols into Protobuf or JSON over MQTT.
https://www.chirpstack.io
MIT License
423 stars 270 forks source link

Packets with no time #72

Closed F-M-A closed 6 years ago

F-M-A commented 6 years ago

https://github.com/brocaar/lora-gateway-bridge/blob/5352d6f162767996253c21a940273d3f2593744c/gateway/backend.go#L446

Will it be posible to add system time to packets that does not have time var?

brocaar commented 6 years ago

Better not, as this would indicate the time when it was received by LoRa Gateway Bridge not when the frame was received . In case you would want to work around the GPS requirement to have this timestamp, it would be better to modify the packet-forwarder. This might be interesting too: https://forum.loraserver.io/t/http-integration-post-json-data-has-no-time-property/438