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
- Host: GitHub
- URL: https://github.com/cafjs/caf_iot_http
- Owner: cafjs
- Created: 2017-07-17T00:08:39.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2022-11-28T23:45:48.000Z (over 3 years ago)
- Last Synced: 2025-08-28T17:45:04.299Z (10 months ago)
- Language: JavaScript
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- Contributing: CONTRIBUTING.md
- License: LICENSE-2.0.txt
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.