alepha@docs:~/docs/packages/alepha$
cat mqtt.md1 min read
Last commit:
#Alepha - Mqtt
#Installation
Part of the alepha package. Import from alepha/mqtt.
npm install alepha
#Overview
MQTT client module for Alepha.
Provides a lifecycle-managed MQTT client backed by mqtt.js.
Registers MqttJsClientProvider as the default implementation of MqttClientProvider.
#API Reference
#Providers
MqttJsClientProvider— MQTT client provider backed by themqttnpm package (mqtt.js).
#Environment Variables
Environment variables used to configure this module. These can be set in your .env file or through your deployment configuration.
| Variable | Type | Default | Description |
|---|---|---|---|
MQTT_BROKER_URL |
text | mqtt://localhost:1883 | MQTT broker connection URL |