apeman-proto-mqtt

2.0.0 • Public • Published

apeman-proto-mqtt

Build Status Code Climate Code Coverage npm Version

Prototype for project with MQTT.

Installation

$ npm install apeman-proto-mqtt --save

Usage

/** This is an example Apemanfile.js */
 
'use strict'
 
module.exports = {
    $ctx: {
        // Project context
 
        /** Port for mqtt server */
        mqttPort: 9000,
 
        /** Port for mqtt over websocket server */
        mqttWsPort: 9001,
 
        /** Mosca backend config */
        mqttBackend: null,
 
        /** Endpoint url for mqtt */
        mqttPath: '/api/peer'
 
 
    },
    $apps: {
        "default": [
            'mqtt:handle'
            /* ... */
        ]
    },
    $pkg: {/* ... */},
    $proto: [
        // Inherit apeman-proto-mqtt project.
        require('apeman-proto-mqtt')
    ],
    $tmpls: {/* ... */},
    $tasks: {/* ... */}
}

Apemanfile Configurations

$pkg

Name Value
name apeman-proto-mqtt
version 2.0.0
description Prototype for project with MQTT.

$proto

$apps

Name Description
mqtt:handle {"undefined":[{}]}

$needs

Bin How to install
apeman npm install -g apeman

License

This software is released under the MIT License.

Links

Readme

Keywords

Package Sidebar

Install

npm i apeman-proto-mqtt

Weekly Downloads

6

Version

2.0.0

License

MIT

Last publish

Collaborators

  • okunishinishi