Azure-Samples / azure-digital-twins-unreal-integration

Sample project demonstrating the Unreal Engine plug-in for Azure Digital Twins
https://www.unrealengine.com/marketplace/en-US/product/adtlink-for-unreal-engine
MIT License
92 stars 43 forks source link

Issue trying to use physical device (Arduino, NodeMCU, ESP8266, etc.) to publish sensors data to ADT! #3

Open lAvArt opened 2 years ago

lAvArt commented 2 years ago

Hi, Many thanks for the effort and hard work on this project.

The documentation provided is thorough and sufficient up to the point where only simulated devices are used to mimic data input into ADT.

The question is, if I want to send data from physical sensors using Arduino or NodeMCU or any other devices capable of MQTT connections, what's the payload that can be used to send data that can be updated and compatible with the ADT and what topic for publishing telemetry?

For Example, sending the data in the following format:

Client.publish(Telemetry_topic, TelemetryPayload)

Would be translated on Azure end as :

Client.publish("devices/{device_id}/messages/events/", "some property") or: Client.publish("devices/{device_id}/modules/{module_id}/messages/events/", "some property")

Trying to send the telemetry with some topic and payload data to the IoT device seems like the logical way to go. But would it be the right approach to use with ADT? and if so, what topic and payload can be used to sync the data with ADT sensor properties since they are set as (bool, string, float, int, dateTime) values in UE4?

Any help or suggestion would be much appreciated.

Thank you very much. lAvArt_Studio

Naimas commented 2 years ago

I am interested in this as well.

SYL5683 commented 1 year ago

@adamlash @Naimas Could I ask for any advice on use physical devices with ADT?