espressif / esp-insights

ESP Insights: A remote diagnostics/observability framework for connected devices
Apache License 2.0
101 stars 27 forks source link

How to change node id #27

Closed antoniuschan99 closed 1 year ago

antoniuschan99 commented 1 year ago

Hello, how do I change the node id that is being sent to insights? If not possible, is it using the mac address as the node id? Also, I see a node id in the rainmaker component. Thanks!

shahpiyushv commented 1 year ago

@antoniuschan99 , while using Insights over HTTP, the mac address gets used as the node id by default. You can override it by setting a custom node id in esp_insights_config_t which is passed to esp_insights_init().

The node id in RainMaker, however, cannot be customised. It is set to mac addeess for self claiming and a randomly assigned uuid for assisted/host claiming. The same gets used for Insights over MQTT.

antoniuschan99 commented 1 year ago

ok great thanks!