Hello

To my best knowledge, there is no way to set the device ID programmatically.

The way it works - is to change the "deviceuuid"  value in "doxm" section
of the security settings file loaded upon platform initialization.
In the server samples, look at file named oic_svr_db_server.json (JSON
format) and oic_svr_db_server.dat (samme file encoded to CBOR, this one is
actually used by the API).

Regards
Max



On Thu, Feb 8, 2018 at 3:51 AM, ka ka <kaka120...@gmail.com> wrote:

> Hello, IoTivity developers,
> I am working on an Android based IoTivity project.
> I need to fix the device ID of IoTivity platform.
> I used OcPlatform.setDeviceId to set the device ID,
> but it shows runtime error (UUID length, format are OK).
> is there some other solution?
> Regards
>
> ====================
> Wenquan Jin (김문권)
> Jeju Natl. Univ.
> Jeju 690-756
> REPUBLIC OF KOREA
> Phone: +82 (0)10 2983 0958 <pluskm...@live.com>
> ====================
>
> _______________________________________________
> iotivity-dev mailing list
> iotivity-dev@lists.iotivity.org
> https://lists.iotivity.org/mailman/listinfo/iotivity-dev
>
>
_______________________________________________
iotivity-dev mailing list
iotivity-dev@lists.iotivity.org
https://lists.iotivity.org/mailman/listinfo/iotivity-dev

Reply via email to