Re: [dev] IoTivity CoAP to HTTP

2018-04-13 Thread Maria Koutli

Dear Thiago,

Thank you very much for your answer. The only thing that concerns me is 
that "The project is experimental at the moment and APIs provided are 
work in progress and subject to changes." so since as far as I 
understand this is not an IoTivity component, is it compatible only with 
certain versions of IoTIvity? I have an IoTivity server in C++, using 
IoTivity 1.3.1 version.


What I would like is to access the IoTivity server's CoAP services 
outside of my local network, that's why I thought of using HTTP services 
in the first place.


But if there is a way to have an IoTivity client remotely that could 
make a CoAP multicast discovery request to the network of the IoTivity 
server or if there is a way to _start IoTivity server on a certain port_ 
so that an IoTivity client can make a CoAP unicast request to the 
server, that would be sufficient. Is there a way that I could achieve 
any of these two solutions?


Thank you.

Best Regards,

Koutli Maria


On 12-Apr-18 6:40 PM, Thiago Macieira wrote:

On Thursday, 12 April 2018 01:09:33 PDT Maria Koutli wrote:

Hello all,

I would like to have access to my IoTivity server remotely over the
internet by making HTTP calls to it (not directly I suppose).

I found this wiki page "CoAP-HTTP Proxy"
https://wiki.iotivity.org/coap-http_proxy but it only shows the opposite
direction (an IoTivity client sending to the web). Is there a way for
the IoTivity server to receive HTTP requests from the web and map them
to the respective CoAP requests? Is there an example for this sequence?

See this

https://github.com/intel/iot-rest-api-server

It's not been updated recently, but it does the work in the direction you
want, so it should get you started.



___
iotivity-dev mailing list
iotivity-dev@lists.iotivity.org
https://lists.iotivity.org/mailman/listinfo/iotivity-dev


Re: [dev] IoTivity CoAP to HTTP

2018-04-12 Thread Thiago Macieira
On Thursday, 12 April 2018 01:09:33 PDT Maria Koutli wrote:
> Hello all,
> 
> I would like to have access to my IoTivity server remotely over the
> internet by making HTTP calls to it (not directly I suppose).
> 
> I found this wiki page "CoAP-HTTP Proxy"
> https://wiki.iotivity.org/coap-http_proxy but it only shows the opposite
> direction (an IoTivity client sending to the web). Is there a way for
> the IoTivity server to receive HTTP requests from the web and map them
> to the respective CoAP requests? Is there an example for this sequence?

See this

https://github.com/intel/iot-rest-api-server

It's not been updated recently, but it does the work in the direction you 
want, so it should get you started.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center



___
iotivity-dev mailing list
iotivity-dev@lists.iotivity.org
https://lists.iotivity.org/mailman/listinfo/iotivity-dev


[dev] IoTivity CoAP to HTTP

2018-04-12 Thread Maria Koutli

Hello all,

I would like to have access to my IoTivity server remotely over the 
internet by making HTTP calls to it (not directly I suppose).


I found this wiki page "CoAP-HTTP Proxy" 
https://wiki.iotivity.org/coap-http_proxy but it only shows the opposite 
direction (an IoTivity client sending to the web). Is there a way for 
the IoTivity server to receive HTTP requests from the web and map them 
to the respective CoAP requests? Is there an example for this sequence?


Thank you.

Best Regards,

Maria Koutli

p.s. I wouldn't like to set up a whole IoTivity Cloud infrastructure 
just for my IoTivity server to accept simple HTTP calls.


___
iotivity-dev mailing list
iotivity-dev@lists.iotivity.org
https://lists.iotivity.org/mailman/listinfo/iotivity-dev