Commit 6b0bc794 authored by Björn Butzin's avatar Björn Butzin
Browse files

Merge branch 'master' of gitlab.amd.e-technik.uni-rostock.de:ws4d/jcoap

parents 0fb6e271 320fa241
Pipeline #71 passed with stage
in 1 minute and 13 seconds
image: maven:latest
maven_build:
script: mvn test -f ws4d-jcoap/pom.xml
\ No newline at end of file
......@@ -16,14 +16,14 @@ In order to send HTTP requests from a web-browser to the jCoAP proxy, make sure
The HTTP proxy server is started on Port 8080.
```text
+-----------------------------------------------+
| jCoAP Proxy |
| |
+-----------------------------------------------+
| jCoAP Proxy |
| |
+-------------+ +-------------+ +-------+ +-------------+ +-------------+
| HTTP Client |---->| HTTP Server |---->| Cache |---->| CoAP Client |---->| CoAP Server |
+-------------+ +-------------+ +-------+ +-------------+ +-------------+
| |
+-----------------------------------------------+
| |
+-----------------------------------------------+
```
As CoAP was designed with proxies in mind, CoAP messages can contain a Proxy-URI option.
......@@ -34,18 +34,18 @@ Notice that https:// and coaps:// are not supported as security is not implement
As example the Proxy-URI 'http://127.0.0.1/wanted' will cause the proxy to fetch the 'wanted' resource using HTTP, while the Proxy-URI 'coap://127.0.0.1/wanted' will cause the proxy to fetch the 'wanted' resource using CoAP.
The CoAP proxy server is started on port 5683 (CoAP default port).
```text
+-----------------------------------------------+
| jCoAP Proxy |
| |
+-----------------------------------------------+
| jCoAP Proxy |
| |
+-------------+ +-------------+ +-------+ +-------------+ +-------------+
| CoAP Client |---->| CoAP Server |---->| |---->| CoAP Client |---->| CoAP Server |
+-------------+ +-------------+ | | +-------------+ +-------------+
| | Cache | |
| | | +-------------+ +-------------+
| | |---->| HTTP Client |---->| HTTP Server |
| +-------+ +-------------+ +-------------+
| |
+-----------------------------------------------+
| | Cache | |
| | | +-------------+ +-------------+
| | |---->| HTTP Client |---->| HTTP Server |
| +-------+ +-------------+ +-------------+
| |
+-----------------------------------------------+
```
Aditionally the proxy starts a second CoAP server on port 5684 offering the '/statistic' resource.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment