Skip to main content

Configuration

To enable public MQTT API on the Gateway you need to use Enapter Gateway Command Line Interface (not to be confused with Enapter CLI for devices and blueprints management).

In this tutorial we will use username and password with same values public/public:

public-mqtt-setup "public" "public"

The MQTT API is available on port 9883. Also you need to know you gateway IP address.

Now you are ready to check that everything works fine:

mosquitto_pub -r -p 9883 -h <GATEWAY_IP_ADDRESS> -u public -P public -t "telemetry/v2/#" -v

You should receive telemetry messages from your devices.

All Rights Reserved © 2024 Enapter AG.