telefonicaid / iotagent-node-lib

Module to enable IoT Agent developers to build custom agents for their devices that can easily connect to NGSI Context Brokers
https://iotagent-node-lib.rtfd.io/
GNU Affero General Public License v3.0
60 stars 88 forks source link

timestamp alternative format support (to allows storing milliseconds timestamps in orion) #795

Open chicco785 opened 5 years ago

chicco785 commented 5 years ago

as discussed here: https://github.com/telefonicaid/fiware-orion/issues/432 for DataTime type orion strips milliseconds.

now timestamp send by the iot agent lib are all in DataTime type. So despite IoT Agent handles milliseconds, these are not stored in Orion.

The proposal then is to be able to configure the "timestamp" type, either Unix timestamp, or to a valid alternative.

fgalan commented 5 years ago

A new parameter to configure this should be defined in config.js. The default should be as it is now (i.e. ISO8601 format) in order to keep backward compatibility.

fgalan commented 4 years ago

Now that Orion supports milliseconds, maybe this issue is obsolete and could be closed?

chicco785 commented 4 years ago

most probably that's correct. e2e test should be made

fgalan commented 4 years ago

I understand you have a way to test the e2e for this issue. If I'm right it would be great if you could test and tell us :). Thanks!