There is no API to set the di by application.
However, di is set by iotivity stack internally during initialized.
In case of secure mode, di is permanent.
But in case of non-secure mode, versatile.
I believe di setting API will resolve this issue.

BR, Uze Choi
-----Original Message-----
From: iotivity-dev-bounces at lists.iotivity.org 
[mailto:[email protected]] On Behalf Of Thiago Macieira
Sent: Thursday, January 21, 2016 2:12 PM
To: iotivity-dev at lists.iotivity.org
Subject: Re: [dev] Need API to set static "sid" and "port number".

On Thursday 21 January 2016 04:19:56 ??? wrote:
> Hi all,
>  
> I have a problem about Iotivity reconnection server and client.
> Real product has many network connection problems (include 
> shutdown...)
>  
> IoTivity server change sid and port number every run.
> It is a problem.

What is the sid? Do you mean the device ID? The device ID should be set by your 
application, after loading it from permanent storage.

As for the port number, it is correct to change on every run.

> If "living room light" shut down, then we should find "living room light"
> again. It is very inconvenience user exprience. 

Correct.

> So, I need a API to set static "sid" and "port number".
> (OCInit() has port number parameter, but didn't work)

You need to set "di" (device ID), but not the port number.
--
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

_______________________________________________
iotivity-dev mailing list
iotivity-dev at lists.iotivity.org
https://lists.iotivity.org/mailman/listinfo/iotivity-dev

Reply via email to