If you encounter this duplicate error message "POINT_PERFECT_DUPLICATE_CONNECT_ERROR_EVENT Duplicate clientId used for Point Perfect device device:bcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", this indicates that the MQTT broker has received a connection request from a client identifier (Client Id) that is already linked to an active connection. According to the MQTT protocol, a client can only have one active connection at any given time and so when this happens, the broker will terminate the existing session and start a new one for the latest client.
To avoid this error, it is advisable to ensure that the device disconnects from the MQTT session before powering off. Additionally, it is recommended to set the MQTT session duration passed in when the client connects in line with your requirements. The PointPerfect data stream publishes updates frequently which automatically refreshes the session timer so it is not necessary to set a long duration for the client.