[ 
https://issues.apache.org/jira/browse/QUARKS-175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15277341#comment-15277341
 ] 

Daniel John Debrunner commented on QUARKS-175:
----------------------------------------------

This also makes commands symmetrical with events where the specific IoT 
Platform message format is hidden from the caller of IotfDevice.

> IoT Platform commands processing not correctly handling json.
> -------------------------------------------------------------
>
>                 Key: QUARKS-175
>                 URL: https://issues.apache.org/jira/browse/QUARKS-175
>             Project: Quarks
>          Issue Type: Bug
>          Components: Connectors
>            Reporter: Daniel John Debrunner
>            Assignee: Daniel John Debrunner
>
> IotDevice.commands() returns the commands information as a JSON object.
> With Iot Platform (IotfDevice) the key "payload" contains the complete MQTT 
> message rather than extracting the command data (the "d" key in the MQTT 
> message).
> An IoT Platform message contains two keys, "d" and "ts".
> * "d" is the data for the message
> * "ts" is an optional ISO8601 timestamp
> The intention was that the "payload" key be the payload of the command (not 
> the message) for the json format to simplify code for others, and also not 
> force every application to have to fetch the "d" key.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to