You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@edgent.apache.org by "Daniel John Debrunner (JIRA)" <ji...@apache.org> on 2016/05/09 23:39:12 UTC

[jira] [Created] (QUARKS-175) IoT Platform commands processing not correctly handling json.

Daniel John Debrunner created QUARKS-175:
--------------------------------------------

             Summary: 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)