sitewhere / sitewhere

SiteWhere is an industrial strength open-source application enablement platform for the Internet of Things (IoT). It provides a multi-tenant microservice-based infrastructure that includes device/asset management, data ingestion, big-data storage, and integration through a modern, scalable architecture. SiteWhere provides REST APIs for all system functionality. SiteWhere provides SDKs for many common device platforms including Android, iOS, Arduino, and any Java-capable platform such as Raspberry Pi rapidly accelerating the speed of innovation.
https://sitewhere.io
Other
1.01k stars 383 forks source link

Tag InfluxDB device events with hardware id #551

Closed derekadams closed 6 years ago

derekadams commented 6 years ago

See original post

The device hardware id is not added as a tag for InfluxDB event storage. It may make sense to add hardware id to the event API as well, though it was originally left out to save space when storing events since you can find it via the device assignment.

derekadams commented 6 years ago

This has been added for the 2.0 release, though in a slightly different form. One new aspect of SiteWhere 2.0 is that all entities have an internal id as well as an external id (such as hardwareId or token). The internal id never changes, but the token can be changed at any time. As such, the value stored in the event is the "device id" which is the unique id for the device and not the "hardware id" which can be updated over time.