public class DeviceUpdateRequestHandler extends DMRequestHandler
Topic
iotdm-1/device/update
Message format
Request:
{
"d": {
"value": { }
},
"reqId": "string"
}
"value" is the new value of the device attribute.
It is a complex field matching the device model.
Only writeable fields should be updated as a result of this operation.
Values can be updated in:
| Constructor and Description |
|---|
DeviceUpdateRequestHandler(ManagedClient dmClient) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getTopic()
Returns the update topic
|
void |
handleRequest(com.google.gson.JsonObject jsonRequest,
String topic)
This method handles all the update requests from IBM Watson IoT Platform
|
clearRequestHandlers, getDMClient, getObserveRequestHandler, messageArrived, notify, respond, setDMClient, setRequestHandlerspublic DeviceUpdateRequestHandler(ManagedClient dmClient)
protected String getTopic()
getTopic in class DMRequestHandlerpublic void handleRequest(com.google.gson.JsonObject jsonRequest,
String topic)
handleRequest in class DMRequestHandlerCopyright © 2019. All rights reserved.