Basic Authentication
Basic authentication works based on the username & password combination. The device needs to use the correct username and password combination to get connected to the DyoCense cloud. Every device will be using its username itself as the default password.
On first connection with the cloud, the device is expected to go through the registration workflow and obtain a new password which will be known only to the DyoCense cloud and the device itself. This is the very first step in the process of onboarding a new device to DyoCense cloud. Unless the device is registered, it will not be allowed to exchange any messages to DyoCense cloud.
The response for the registration will contain a new password for the device to use, instead of the default password. For further connections, device need to use this new password for authentication.
Note: Registration is required on the initial startup of the device only. Also, if the device supports reset kind of functionality, which flushes the storage and memory of the device, it may be required to re-register the device to get a new password after the reset