Skip to content
A service for hosting independent mqtt subscribers
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
bin
circle
examples
lib
test
.dockerignore
.eslintignore
.eslintrc
.gitignore
.nvmrc
Dockerfile
LICENSE
README.md
circle.yml
package.json

README.md

mqtt-lambda

A service for hosting independent mqtt subscribers

Running examples

export MQTT_BROKER_URL=mqtt://localhost
export SUBSCRIBERS_ROOT=./examples
npm start

Environment Variables

Required:

MQTT_BROKER_URL:                The url of the mqtt broker
SUBSCRIBERS_ROOT:               The directory to load the lambda subscribers from

Optional:

MQTT_CLIENT_ID:                 The mqtt client's id
MQTT_CLIENT_CONNECT_TIMEOUT:    The client's connection timeout in milliseconds
MQTT_CLIENT_KEEPALIVE:          The client's keep alive in seconds

MQTT_CLIENT_USERNAME:           The client's username
MQTT_CLIENT_PASSWORD:           The client's password

REQUIRE_CLIENT_ID:              Whether or not to require a client id. Set this in your Dockerfile if you require

API_PORT:                       The monitoring api port. Defaults to 80

LAMBDA_LOG_NAME:                The name of the bunyan logger used by mqtt-lambda
LAMBDA_LOG_LEVEL:               The log level used by mqtt-lambda
LAMBDA_VERSION:                 The version to stamp log messages with and show in the web api
You can’t perform that action at this time.