Diethelm, There is a multi_device_server_linux.c sample found in the apps directory.
This sample should demonstrate what you are asking for. Let us know if it shows what you need. https://github.com/iotivity/iotivity-lite/blob/master/apps/multi_device_server_linux.c thanks, George Nash From: iotivity-dev@lists.iotivity.org <iotivity-dev@lists.iotivity.org> On Behalf Of Prof. Dr.-Ing. Diethelm Bienhaus Sent: Tuesday, December 3, 2019 11:12 AM To: iotivity-dev@lists.iotivity.org Cc: Sören Fink <soeren.f...@mni.thm.de>; thorsten.e...@gmx.de Subject: Re: [dev] IoTivity lite question Hi all, we are building a gateway for EnOcean sensors. The goal is to have a device for each physical device like a button or a sensor. There are EnOcean sensors with e.g. three measurement points like combined temperature / illuminance / presence. So we want to provide several devices (with one to n resources) from our gateway application. In old days (IoTivity) it was possible to have one server (in one surrounding application) that starts several devices. Is that possible with IoTivity lite too? If so: could some one send me e.g. a link to an example? Many thanks in advance. Best regards, Diethelm -------- Weitergeleitete Nachricht -------- Betreff: RE: IoTivity lite question Datum: Tue, 3 Dec 2019 18:49:40 +0000 Von: Rami Alshafi <ralsh...@vtmgroup.com><mailto:ralsh...@vtmgroup.com> An: Prof. Dr.-Ing. Diethelm Bienhaus <diethelm.bienh...@mni.thm.de><mailto:diethelm.bienh...@mni.thm.de> Hi, Yes, I believe it is possible to be accomplished with IoTivity-lite. I do not know for sure but no one complained about it being an issue at all and I work with many developers. Your best bet is to send out your question to the IoTivity developer mailing list (iotivity-dev@lists.iotivity.org<mailto:iotivity-dev@lists.iotivity.org>) and one of the developers will likely respond. The holidays in the US are coming up so maybe responses will be slower. Thanks, -Rami From: Prof. Dr.-Ing. Diethelm Bienhaus [mailto:diethelm.bienh...@mni.thm.de] Sent: Tuesday, December 3, 2019 8:17 AM To: Rami Alshafi <ralsh...@vtmgroup.com><mailto:ralsh...@vtmgroup.com> Subject: IoTivity lite question Hi Rami, hopefully you can help us (or push forward our problem): Using the nice development process (gen.sh -> build.sh -> run.sh) we could generate a server with the desired resources. OCF Server name : "server_lite_5821" Intialize Secure Resources Register Resource with local path "/humidity" number of Resource Types: 1 Resource Type: "oic.r.humidity" Default OCF Interface: "oic.if.a" Register Resource with local path "/keycardswitch" number of Resource Types: 1 Resource Type: "oic.r.keycardswitch" Default OCF Interface: "oic.if.a" Register Resource with local path "/rockerbutton" number of Resource Types: 1 Resource Type: "oic.r.button" Default OCF Interface: "oic.if.a" Register Resource with local path "/sensor_contact" number of Resource Types: 1 Resource Type: "oic.r.sensor.contact" Default OCF Interface: "oic.if.a" Register Resource with local path "/sensor_presence" number of Resource Types: 1 Resource Type: "oic.r.sensor.presence" Default OCF Interface: "oic.if.a" Register Resource with local path "/temperature" number of Resource Types: 1 Resource Type: "oic.r.temperature" Default OCF Interface: "oic.if.a" Successfully installed PKI certificate Successfully installed intermediate CA certificate Successfully installed root certificate OCF server "server_lite_5821" running, waiting on incoming connections. The goal is to have a device for each physical device like a button or a sensor. There are EnOcean sensors with e.g. three measurement points: Light, Temperature and Occupancy Sensor (A5-08-XX) Temperature value Temp Unit (by spec Temp Range (by TYPE spec) Illumination value Illumination range (by type spec) Occupancy oic.r.temperature oic.r.sensor.illuminance oic.r.sensor.presence oic.d.sensor Generic Sensor So we want to provide several devices (with one to n resources) from our gateway application. In old days (IoTivity) it was possible to have one server (in one surrounding application) that starts several devices. Is that possible with IoTivity lite too? If not: I started two servers (one and the copy of the executable from the first). When I onboarded the first one successfully onboarding of the second failed. Our questions: - is it possible to start two or more servers within one application ? - How to organise credentials in that case (persistence, etc...) Many thanks in advance, Diethelm -- ---------------------------------------------------------- Prof. Dr.-Ing. Dipl.-Wirt. Ing. Diethelm Bienhaus Fachgebiet Informatik mit Schwerpunkt Ingenieur-lnformatik Fachbereich Mathematik, Naturwissenschaften und Informatik Technische Hochschule Mittelhessen Wiesenstr. 14 - D-35390 Gießen -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#10305): https://lists.iotivity.org/g/iotivity-dev/message/10305 Mute This Topic: https://lists.iotivity.org/mt/65853266/21656 Group Owner: iotivity-dev+ow...@lists.iotivity.org Unsubscribe: https://lists.iotivity.org/g/iotivity-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-