On Monday 09 March 2015 14:28:27 ??? wrote:
> Hi Thiago,
> 
> Can you compare between strings and a structured binary format?
> Whole context requires the exact & clear terminology consensus.

Hi Uze

The spec only deals with requests and responses in an abstract form, not the 
encoding. We should approach it by a JSON-like type of request. So instead of 
one string:

"AllBulbOn*yyyy-mm-dd hh:mm:ss 1 1*uri=coap://x.x.x.10:xxxx/a/light|power=on*"

We should break it down as:

{
    "cmd": "AllBulbOn",
    "date": "yyyy-mm-dd hh:mm:ss",
    "uri": "coap://x.x.x.10:xxxx/a/light|power=on"
}

For the API, we should have the proper structured form so that we can easily 
access the fields. That also eases translation to wire format.

We already have collection types in the IoTivity API.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

Reply via email to