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
