The RD server works as expected. The publishing client is not working
correctly. We had to modify the code to get it to work as expected.
However, the modified code is not generic enough to share to the community.

RD is just a directory very much like DNS about other nodes that exist in
the network and the services they host. As far as I remember resource
hosting is more of a service in which a more capable node will represent
low power nodes that are not always available and 'host' their resources.

BR,

Khaled


On Tue, Apr 17, 2018 at 4:34 PM, Maria Koutli <mkou...@iti.gr> wrote:

> Hello,
>
> I have tried to use RD using the instructions here :
> https://wiki.iotivity.org/resource_directory_-_programming_guide
>
> I build using command scons resource/csdk/resource-directory/ RD_MODE=all
> and then
>
> I start the RD server:
>
> ./rd_server
>
> and I get in the console:
>
> OCResourceDirectory is starting...
> RD created successfully...
>
> which is normal. The I start the publish client
>
> ./rd_publishingClient
>
> and press 1 and enter, but all I get is again the instructions. My
> operating system is Ubuntu 16.04 and I ve tried both with Iotivity 1.3.1
> and Iotivity at master.
> Should I follow different instructions?
> Thank you.
>
> Best Regards,
> KM
>
> p.s what is the difference between resource directory and resource hosting
> (in service folder)?
>
> On 16-Apr-18 4:50 PM, Khaled Elsayed wrote:
>
> An architectural correction: the local OCF servers typically discover RD
> and register with it not the other way around.
>
>
>
> On Mon, Apr 16, 2018 at 3:37 PM, Khaled Elsayed <khaledi...@gmail.com>
> wrote:
>
>> If the devices have public IP addresses (not recommended), they can be
>> accessed with the help of a  resource directory RD server. The RD should
>> perform local discovery of the devices and can share this information with
>> external end points.
>>
>> If devices have non-routable addresses, then proxy+RD is the way to go.
>>
>>
>>
>> On Sat, Apr 14, 2018 at 3:51 PM, Maria Koutli <mkou...@iti.gr> wrote:
>>
>>> Hello all,
>>>
>>> Is there a way to access an IoTivity server outside of its local network
>>> (find resources, send get, post requests etc) without using the IoTivity
>>> Cloud architecture? If yes, could you point me to some
>>> documentation/example code?
>>>
>>> Thank you.
>>>
>>> Best Regards,
>>>
>>> Koutli Maria
>>>
>>> _______________________________________________
>>> 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