Open hsakamoto123 opened 1 year ago
I was able to avoid it in the same way as the issue answer below. However, if you follow the steps in the tutorial in order, this event will occur. Therefore, I would like to change the order of the tutorials or add a note of caution.
https://github.com/FIWARE/tutorials.IoT-Agent-JSON/issues/7
DUPLICATE_DEVICE_ID would indicate that the device has already been correctly provisioned. Deleting it will remove it as you can see the count is reduced. What I suspect is happened here, is that the Lamp was ON and streaming data, once it was deleted the next request from the lamp (which had a known API Key) recreated the lamp as an [anonymous device](https://iotagent-node-lib.readthedocs.io/en/latest/getting-started.html#receiving-a-measure-from-an-anonymous-device). IIRC if the tutorial is running and any actuation has occurred dummy measures are sent periodically once a minute.
The key takeaway here is not to send measures to the IoT Agent until all devices are fully provisioned.
Execution of the tutorial command results in an error.
The details of lamp001 at this time are as follows.
I deleted lamp001 and tried again but got the same error.
Please let me know how I can avoid this.
Added 2023/1/4: I don't know if it's directly related, but the container log has the following error.