apeman-proto-mqtt

Prototype for project with MQTT.

Usage no npm install needed!

<script type="module">
  import apemanProtoMqtt from 'https://cdn.skypack.dev/apeman-proto-mqtt';
</script>

README

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