Commit 320fa241 authored by Björn Butzin's avatar Björn Butzin

Update README.md to use spaces instead of tabs for the ASCII graphics to ensure correct display

parent 8e4bf8f8
Pipeline #19 passed with stage
in 31 seconds
......@@ -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