apeman-app-mqtt
apeman app for MQTT broker server.
Installation
$ npm install apeman-app-mqtt --save
Usage
- Define an app within Apemanfile.js
- Call the app via apeman app command.
Apemanfile.js
/** This is an example Apemanfile to use apeman-app-mqtt */ 'use strict' moduleexports = $pkg: /* ... */ $apps: // Define your own app. 'my-app-01': // Map url and handlers. '/mqtt': port: 9001
Then,
$ apeman app my-app-01 -p 3000
Signature
apemanAppMqtt(options) -> function
apeman app for MQTT broker server.
Args
Name | Type | Default | Description |
---|---|---|---|
options | object | Optional settings. | |
options.backend | object | Mosca backend option. |
License
This software is released under the MIT License.