yaqwsx/SensorStreamer

Feature request: Add Device ID Static String Field to JSON Packet Type

Opened this issue · 1 comments

It would be very helpful if the JSON packet type included a static string field with which you could specify a value to use to disambiguate which device produced the telemetry record.

To add a bit of context, we have multiple devices which are all streaming JSON packets via TCP to a Logstash server which stores the data in Elasticsearch for analysis. We capture the IP address of the device which produced a given telemetry record, however since the devices get their IPs from DHCP, the IP addresses for each device can change. If there where a way to include a static string in the JSON packet definition, for example:

"device_id": "Test tablet 1"

That would be fantastic!

+1 for this feature. This could be the device identifier.