On 11/12/17 17:10, Mats Wichmann wrote:
> On 12/11/2017 02:04 AM, Sun Lifeng 孙立峰 (690) wrote:
>> Hi, dev,
>>
>> For IoTivity project, about SECURED mode, for my understanding, I should 
>> generate dat file for the SVR database. Am I right?
yes you need to write ACL in json and then compile it

check spec linked at:
https://wiki.iotivity.org/security

>> If I do, how to generate that dat file? Is there a specific tool?
> Yes, json2cbor.  it builds out of resource/csdk/security/tool. you will
> find the built one in a path like this:
>
> out/linux/x86_64/debug/resource/csdk/security/tool/json2cbor
And now installed to /usr/lib/iotivity/... (in master branch only)

> Note there is code named json2cbor in the libcoap fork, that is not the
> same thing.
in tinycbor there is one too,
I would suggest to rename ours to json2dat or iotivity2cbor ?

-- 
mailto:[email protected] gpg:0x467094BC
https://blogs.s-osg.org/author/pcoval/

_______________________________________________
iotivity-dev mailing list
[email protected]
https://lists.iotivity.org/mailman/listinfo/iotivity-dev

Reply via email to