An open API service indexing awesome lists of open source software.

https://github.com/cafjs/caf_iot_http

A CAF IoT library to access external http services
https://github.com/cafjs/caf_iot_http

Last synced: 5 months ago
JSON representation

A CAF IoT library to access external http services

Awesome Lists containing this project

README

          

# Caf.js

Co-design cloud assistants with your web app and IoT devices.

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.