Posting to this resource is a request to create a link between the Gateway and the targeted edge device using BLE. As a pre-requisite, the scanList resource (see the GET /gateway/scanList Section) must be accessed prior to this. Using the scanList resource forces the Gateway to do an active BLE scan. Posting to this resource is dependent on a previous successful scan, and the target device was included in the scan list. The body of this resource must contain the deviceID JSON tag which specifies the serial number of the intended edge device. This serial number should be the same as was reported from the scanList JSON tag “mainSn”.
Basic: Unique credentials defined and accepted during setup.
URI Parameters: None
Body: missing the body or should this be None?
Type: application/json
Request Example:
{"deviceId":"a000000000000123"}
HTTP status code: 201
Response Parameters: missing parameters or should this be None?
Type: application/json
linkInfo = parent tag (the following terms are defined the ENGAGE - JSON Data Structures document, section titled “Gateway Edge Device Link List”)
Success Response Example:
{"linkInfo":{"linkId":"dev00001","deviceId":"a000000000000123","deviceName":"Front Door","linkCommStatus":"Connected",
"modelType":"nde"}}
HTTP status code: 400
Response parameters: missing parameters or should this be None?
Type: application/json
statusMessage = multiple detailed status message, value(s) defined below
HTTP status code: 500
Response parameters: missing parameters or should this be None?
Type: application/json
statusMessage = multiple detailed status message, value(s) defined below
Last Modified: October 14, 2019