CoAP – HTTP Mapping: Contains mapping between CoAP and HTTP Request, Response and Error codes.
CoAP Request - HTTP Response Handler: Implements conversion of CoAP request to HTTP request and HTTP response to CoAP response with help of “CoAP-HTTP Mapping” module.
HTTP Parser: Implements functionality of parsing HTTP responses.
HTTP Client: Implements functionality of generating HTTP requests.
TCP Client: Implements TCP client to interact with HTTP servers.
Code Location: Code for proxy can be found at: <path_to_IoTivity> /service/coap-http-proxy
Supported Platform: Proxy service is currently supported on Linux while a client for proxy can run on any IoTivity supported platform.
Build Dependency: Proxy is developed using curl HTTP client library (https://curl.haxx.se/libcurl/). In case your Linux box is missing libcurl, please install it using:
For alternatives to openssl, please refer: https://curl.haxx.se/docs/ssl-compared.html
To build proxy, please use following command:
This will build CoAP-HTTP Proxy service along with other IoTivity services and base layer.
To run proxy service, please launch:
To launch proxy client, please launch: