In order to subscribe to widget commands from the server, send GET request with optional “timeout” request parameter to the following URL:

http://www.cloudchip.io/api/v1/$ACCESS_TOKEN/rpc

Once subscribed, a client may receive widget request or a timeout message if there are no requests to a particular device. An example of widget request body is shown below:{ “id”: “1”, “method”: “setGpio”, “params”: { “pin”: “23”, “value”: 1 }}