If you want to check manually and if I'm not wrong, you can use 'xxd -ps' on that file from the terminal to get its contents and then you can paste that in the text area to the right on CBOR playground (cbor.me). You might have to repeat that process with other encoded string that'll appear when using it.
On Fri, Mar 2, 2018, 07:33 Oleksiy Volkov <a.vol...@samsung.com> wrote: > Hi Jason, > > > > json2cbor is a one way tool, so it is impossible to use it to generate > json back from dat. > > But you can use any another CBOR decoding tool to review content of dat > files. > > > > > > *Best regards,* > > *Aleksey Volkov* > > > > --------- *Original Message* --------- > > *Sender* : Sun Lifeng 孙立峰 (690) <sunlifeng...@haier.com> > > *Date* : 2018-03-02 11:47 (GMT+2) > > *Title* : [dev] 答复: Using CTT tool can't find device resource in SECURED > mode > > > > Hi， Dev > > > > Sorry to disturb you. I used file > out/linux/arm/release/resource/csdk/security/tool/json2cbor to trans from > json file to dat file. Is there a way to change the file from dat back to > json? > > > > Thanks > > > > Jason Sun > > > > *发件人:* Sun Lifeng 孙立峰 (690) > *发送时间:* 2018年2月28日 11:23 > *收件人:* 'firstname.lastname@example.org' > *主题:* Using CTT tool can't find device resource in SECURED mode > > > > Hi, dev > > > > For IoTivity 1.3.1 in SECURED mode, I did a program and generate a device > resource. > > > > With that I used CTT tool to do a testing. But unfortunately, the resource > can’t be found. Could you help check whether the json file, seeing the > attachment, is right and give me some suggestions? > > > > The resource is /test, need I declare in this file? And how could I do? > > > > I am sure that the resource is generated since without SECURED mode CTT > tool can find the resource. > > > > Thanks > > > > Jason Sun > > _______________________________________________ > iotivity-dev mailing > email@example.com://lists.iotivity.org/mailman/listinfo/iotivity-dev > > > > > > > > > > > _______________________________________________ > iotivity-dev mailing list > firstname.lastname@example.org > https://lists.iotivity.org/mailman/listinfo/iotivity-dev >
_______________________________________________ iotivity-dev mailing list email@example.com https://lists.iotivity.org/mailman/listinfo/iotivity-dev