0.4.0 • Published 4 years ago

caf_iot_http v0.4.0

Weekly downloads
16
License
Apache-2.0
Repository
github
Last release
4 years ago

Caf.js

Co-design permanent, active, stateful, reliable cloud proxies with your web app or gadget.

See https://www.cafjs.com

IoT Library for HTTP-based Services

A library to access external http services

It runs in the device not in the cloud.

API

lib/proxy_iot_http.js

Configuration Example

iot.json

{
        "module": "caf_iot_http#plug_iot",
        "name": "http",
        "description": "Access external http services.",
        "env" : {
            "maxRetries" : "$._.env.maxRetries",
            "retryDelay" : "$._.env.retryDelay",
            "cloudSync" : "process.env.CLOUD_SYNC||false"
        },
        "components" : [
            {
                "module": "caf_iot_http#proxy_iot",
                "name": "proxy",
                "description": "Proxy to access external http services",
                "env" : {
                }
            }
        ]
}

where cloudSync set to false avoids a cloud roundtrip while processing http stream events.

0.4.0

4 years ago

0.3.0

6 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago