Device Private Deployment Broker Configuration - Private Deployment Hotspot
By enabling a "private deployment hotspot" on-site at the device, the device will send a request for private deployment configuration (e.g., interface request) to the server after connecting to the hotspot, and save the configuration information returned by the interface.
The private deployment hotspot method not only configures private deployment settings but also allows network configuration for the device simultaneously.The private deployment hotspot configuration method requires programming to implement an interface for the device to request configuration information.
Enable Private Deployment Hotspot
Please enable a 2.4G wireless hotspot on-site at the device:
Hotspot Name:
pvt-ip-portHotspot Password:
unisoft.cn [Fixed]2. Once the hotspot is detected, it will connect to it using the above name and password.
3. After successfully connecting to the hotspot, the device will send a request to http://ip-address:port-number/private.
4. After the request succeeds, the device will save the private deployment configuration information returned by the interface.
Device Initiates Configuration Request
If the device does not detect the private deployment configuration hotspot or fails to connect to it, it will not send a request to this interface.
If the request fails, the device will disconnect from the hotspot, reconnect (as long as the hotspot exists), and continue requesting this interface.
The device carries parameters when initiating the request. You can return targeted configuration information based on these parameters.
| Parameter / Name / Type | Description |
|---|---|
Product CodeproductString |
The product code (Key) is a constant. It is the same across different devices of the same product and never changes. The product Key can be viewed on the product details page in the console. |
Device IDdeviceInteger |
The device ID is unique on the platform. It never changes for the same device. The device ID is the numeric ID on the device label attached to the device casing. It can also be viewed on the corresponding device details page in the console. |
Timestampts11-digit Integer |
The time when the device initiates the request. The value of this parameter depends on the device's standard time, which is obtained by the device through the NTP interface. If the NTP interface fails to obtain the time, this value will be 0. |
Signaturesign32-character String |
To verify the validity of the request, you can use the signature.
Specific algorithm: md5(Interface IP Address + "." + Port Number + "." + Product Code + "." + Device ID + "." + Device Password + "." + Timestamp) In scenarios such as local area networks (LANs), signature verification can be skipped. |
Configuration Interface Implementation Method
This interface can be implemented through a web service on any network server that the device can access.
Any web container such as IIS, Apache, or Nginx can be used.
It can be deployed on the same server as the Broker.
Log records can be added to the interface for debugging purposes.
Since the device connects to the network through the hotspot and initiates the interface request, it is necessary to ensure that the device enabling the hotspot (which can be a mobile phone, laptop, etc.) is network-interconnected with the interface server.
Configuration Interface Return Format
After the device connects to the hotspot, it will immediately initiate a request. Please output the private deployment configuration parameters based on the device's needs.
| Parameter / Name | Description | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Status Codecode |
Must be 200 | ||||||||||||||
Datadata |
The returned data format is as follows:
(No order requirement)
|