Skip to content

Commit

Permalink
Merge pull request #131 from telefonicaid/AlvaroVega-patch-1
Browse files Browse the repository at this point in the history
Update device_api.md
  • Loading branch information
fgalan committed May 28, 2021
2 parents ce39c14 + 45686c3 commit 8590e8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/device_api.md
Expand Up @@ -402,9 +402,9 @@ HTTP request. This result will be progressed to the Context Broker where it will

Push commands are only valid for HTTP devices. For MQTT devices it is not needed to set the "endpoint" parameter.

**Pull commands**
**Poll commands**

Pull commands are those that are stored in the IoT Agent waiting to be retrieved by the devices. This kind of commands are typically used for devices that doesn't have a public IP or the IP cannot be reached. The device connects to the IoT Agent periodically to retrieve commands. In order to send pull commands you just need to ignore the "endpoint" parameter in the device provision.
Poll commands are those that are stored in the IoT Agent waiting to be retrieved by the devices. This kind of commands are typically used for devices that doesn't have a public IP or the IP cannot be reached. The device connects to the IoT Agent periodically to retrieve commands. In order to send poll commands you just need to ignore the "endpoint" parameter in the device provision.

Once the command request is issued to the IoT agent, the command is stored waiting to be retrieved by the device. In that moment, the status of the command is "command_status": "PENDING". Once the command is retrieved by the device the status is updated to "command_status": "DELIVERED". Eventually, once the device makes the response request with the result of the command the status is updated to "command_status": "OK". Also the result of the command delivered by the device is stored in the "command_info" attribute.

Expand Down

0 comments on commit 8590e8b

Please sign in to comment.