Getting Started
Official Site
Getting Started
Official Site
  • Document description
  • Read before you start

  • Light application development guide

  • Mobile application development guide

  • Cloud live development guide

  • Desktop application development guide

  • Third party development guide

  • Message push development guide

  • IoT things data model

  • HTTP interface

    • Development specification
    • API privacy policy
    • Postman interface simulation call
    • accessToken: Get administrator token
    • API request example
    • Account docking
    • Push configuration
    • Cloud storage service
    • Equipment management

    • Device configurat

      • Device wifi configuration
        • wifiAround: WIFI information around the device
        • controlDeviceWifi: Control device connection hotspot
        • currentDeviceWifi: Device current connection hotspot information
      • Equipment dynamic inspection configuration
      • Device storage configuration
      • Device enable configuration
      • Device collection point configuration
      • Device cruise configuration
      • Device video screen configuration
      • Device recording configuration
      • Device Operation
      • Daylight saving time configuration
    • Video equipment

    • Device message
    • Device live broadcast
    • Device lock access
  • Reference documents

On this page
Function details
Request address
Minimum permissions required for sub-account token request
Incoming parameter description
Sample input
Return data field description
Sample output

Control Device WIFI Connection Hotspot Development Guide - Imou Open Platform

controlDeviceWifi: control device connection hotspot

Function details

Connect the device to the designated WIFI.

Note: The current interface takes a long time. It is recommended to set the data transmission timeout to 75s or more; before switching WIFI, you need to call wifiAround to obtain surrounding wifi information.

Request address

https://openapi-[DataCenter].easy4ip.com/openapi/controlDeviceWifi

Minimum permissions required for sub-account token request

"Permission":"Config" "Resource":"dev:serial number"

Incoming parameter description

Parameter nameParameter typeRequired or notDefault valueLegal valueParameter description
tokenStringYesAdministrator or sub-account accessToken
deviceIdStringYesDevice serial number
ssidStringYesSSID to be connected
bssidStringYesBSSID to be connected
linkEnableBooleanYestrue: connected, false: disconnectedconnected or disconnected
passwordStringNowifi password

Sample input

{
    "system":{
        "ver":"1.0",
        "appId":"lcdxxxxxxxxx",
        "sign":"3daadb14b00a641c8076f55a95721e06",
        "time":1603366175,
        "nonce":"b07ee02f-b1be-4de2-8b7f-e54291ca1fe4"
    },
    "id":"6e387f72-5c70-492f-a8dd-83392ce3e135",
    "params":{
        "password":"@hua2018",
        "bssid":"11:34:56:78:90:12",
        "deviceId":"TESTQWERXXXX",
        "ssid":"TP_PHEGDA",
        "linkEnable":true,
        "token":"At_00000ad9e6e87f0142eb92e207aec46a"
    }
}

Return data field description

No data returned

Sample output

{
  "result":{
    "msg":"The operation was successful.",
    "code":"0"
  },
  "id":"6e387f72-5c70-492f-a8dd-83392ce3e135"
}
wifiAround: WIFI information around the device
currentDeviceWifi: Device current connection hotspot information