- Documentation
- Device and Data Connectivity
- Device Registration Methods
- Scenario 1.2: Programable smart devices (share the same credentials), direct connection
Scenario 1.2: Programable smart devices (share the same credentials), direct connection¶
This scenario deals with the low operability issue of Scenario 1.1.
Procedure¶
Before leaving the factory, batch burn the device firmware with the same credentials (i.e.,
productKey
andproductSecret
) .The device registration can be integrated with the manufacturer’s device management system. Upon the shipment of a batch of devices, the customer’s device management system can register the devices in batch by calling the REST API. The serial number and MAC address, which can uniquely identify a device, can be used as the
deviceKey
.After the devices are sent to the site, powered on, and connected to the network, present the
productKey
,productSecret
, anddeviceKey
to EnOS IoT Hub to obtain thedeviceSecret
issued by EnOS.The devices are then authenticated through the device triple (
productKey
,deviceKey
,deviceSecret
) and logged in to EnOS Cloud.
The following figure illustrates the message flow of connection scenario 1.2.