MQTT provider for @mdf.js based on mqtt.
Using npm:
npm install @mdf.js/mqtt-provider
Using yarn:
yarn add @mdf.js/mqtt-provider
Check information about @mdf.js providers in the documentation of the core module @mdf.js/core.
Checks included in the provider:
error
, running
, stopped
] based in the last ping event. stopped
if the provider is stopped or has not been initialized yet, running
if the provider is running and the last ping event was successful, error
if the provider is running and the last ping event was not successful.status
.fail
if the observed value is error
, warn
if the observed value is stopped
, pass
in other case.Last error
.pass
.'mqtt://localhost:1883'
): URL of the server'mqtt'
): Protocol to useundefined
): Usernameundefined
): Password'mqtt-client'
): Client ID60
): Keepalive in secondsundefined
): CA file pathundefined
): Client cert file pathundefined
): Client key file pathundefined
): Used as default container id, receiver name, sender name, etc. in cluster configurations.Copyright 2024 Mytra Control S.L. All rights reserved.
Use of this source code is governed by an MIT-style license that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.