Hi All,

      I am developing client application using iotivity nodejs and server
app using iotivity CSDK.

Im not getting expected uuid on client application which is mentioned in
the "oic_svr_db_server.dat" file.

oic_svr_db_server.dat uuid = "31313131-3131-3131-3131-313131313131"

output uuid : "33313331-3331-3331-2d33-3133312d3331"

i debugged little bit and found the root cause.

Inside sidToString before OCConvertUuidToString , we found that
Discovered SID data(in iotivity-node/lib/utils.js) is =
[ 51, 49, 51, 49, 51, 49, 51, 49, 45, 51, 49, 51, 49, 45, 51, 49 ]

from this, what i can only assume "it's already converted uuid (already it
is a sting) to uuid string in lowel functions. so 313131... converted to
33313331-. i think, this was an unnecessary conversion causing wrong uuid
problem at client side".


please check once.

as per my understanding
the uuid of uuid string "31313131-3131-3131-3131-313131313131" is (0x31,
0x31, 0x31, 0x31, 0x31, 0x31, 0x31, 0x31, 0x31, 0x31, 0x31, 0x31, 0x31,
0x31, 0x31, 0x31).
but we are getting [decimal: 51, 49, 51, 49, 51, 49, 51, 49, 45, 51, 49,
51, 49, 45, 51, 49 ]


Regards,
K saikumar.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160902/d8fafedb/attachment.html>

Reply via email to