2.0.0 • Published 9 years ago

apeman-proto-mqtt v2.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

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

NameValue
nameapeman-proto-mqtt
version2.0.0
descriptionPrototype for project with MQTT.

$proto

$apps

NameDescription
mqtt:handle{"undefined":{}}

$needs

BinHow to install
apemannpm install -g apeman

License

This software is released under the MIT License.

Links

2.0.0

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago