Open GoogleCodeExporter opened 8 years ago
[deleted comment]
[deleted comment]
It works with in the following scenarios:
From BasicCoapClient (COAP requests to HTTP resources):
1) SERVER_ADDRESS set to the IP of the host running org.ws4d.coap.server.Proxy
2) For coap-coap, use coapRequest.setProxyUri("coap:<ip_endpoint>/resource")
- e.g ip_endpoint set to IP of host running BasicCoapServer
3) For coap-http, use coapRequest.setProxyUri("http:<ip_endpoint>/resource")
- N.B you need an HTTP server running at ip_endpoint
From Browser (HTTP requests to COAP resources):
1) Setup a HTTP proxy using IP of the host running org.ws4d.coap.server.Proxy, port 8080
2) Insert in the address bar the IP of the endpoint (e.g BasicCoapServer)
I deleted two useless comments. I hope this will help.
Original comment by fmletti...@gmail.com
on 24 Mar 2015 at 11:18
I am still unsure how from the browser works. I was going through the code
and it looks like its just replacing the schema with coap;// and requesting a
resource from it self. How is the forwarding address passed? On Californium,
its passed in the path like
http://localhost:8080/proxy/coap://localhost:PORT/target
Original comment by Alexande...@gmail.com
on 25 Mar 2015 at 5:22
If you setup the proxy as I said you can just do an http GET and you will get
the translated CoAP resource (e.g http://127.0.0.1:5684/statistic is the one
run by default in Proxy.java). No need for additional parameters
Original comment by fmletti...@gmail.com
on 17 Apr 2015 at 1:37
Original issue reported on code.google.com by
ly...@email.biigroup.com
on 18 Oct 2012 at 7:47