Same Device is created again on flashing Image to the Board

On flashing the Image to the board every time , in aikaan dash board same device is created multiple times as shown in the image below.

Any way to avoid this ?

Hi,

Yes, you can avoid it by saving and restoring the device agent ID. This file is located at $AGENT_INSTALL_DIR/etc/aiagent_config.json . In most systems AGENT_INSTALL_DIR is /opt/aikaan.

cp /opt/aikaan/etc/aiagent_config.json /mnt/disk/safe.json

Backup safe.json into another device
After flashing the device, before connecting to Internet copy the file back

cp /mnt/disk/safe.json /opt/aikaan/etc/aiagent_config.json

You will not see the device twice.

Thanks
C

Hai @chetansk

Thanks for the instruction. Now this issue is not appearing

Regards,
James A