Pass recvTime
to uplink decoder for TS013 compatibility
#7467
Labels
c/application server
This is related to the Application Server
size/small
This should not be a lot of work
Milestone
Summary
Application Server does not pass
recvTime
in the input object to the uplink decoder. This is required for compliance with TS013. See https://resources.lora-alliance.org/technical-specifications/ts013-1-0-0-payload-codec-api.Current Situation
The codecs are TS013 compliant except for this
recvTime
field.Why do we need this? Who uses it, and when?
We need it for TS013 compliance. The field is there for the codecs to insert metadata or even decode data based on time.
Proposed Implementation
recvTime
to https://github.com/TheThingsNetwork/lorawan-stack/blob/v3.33/pkg/messageprocessors/javascript/javascript.go#L172-L175. In JavaScript it should beDate
, probablytime.Time
is converted by goja, otherwise we need some conversion in the wrapper scriptrecvTime
to the function in https://github.com/TheThingsNetwork/lorawan-stack/blob/v3.33/pkg/messageprocessors/javascript/javascript.go#L203-L205Contributing
Validation
Code of Conduct
The text was updated successfully, but these errors were encountered: