Connecting to MQTT Broker
This section guides you through connecting the device to an MQTT broker to enable sensor data publishing.
🏠 Connecting to a Self-Hosted Broker
Follow these steps to connect your device to a self-hosted MQTT broker:
- Log in to the device's captive portal.
- Navigate to the MQTT settings page.
- By default, MQTT functionality is disabled.
Toggle the Enable MQTT switch to ON to activate configuration fields. - Set MQTT Platform to Self-Hosted Broker.
- Enter the Broker Server Address and Port Number.
- (Optional) For secure communication:
- Enable Use SSL.
- Upload the Server SSL Certificate.
- Provide a unique Client ID for the device.
🔑 Ensure each device has a distinct Client ID to avoid conflicts.
- If your broker requires authentication:
- Select the Authentication Method.
- Enter the Username and Password or upload Client Cert. and Client Key
- Specify the Publish Topic where sensor data will be sent.
- (Optional) Enter a Subscribe Topic if the device needs to receive commands or messages.
- Set the Publish Interval (in seconds) to define how frequently data is sent to the broker.
- Click Save Settings to establish the connection.
✅ Once connected, the device status LED turns Solid Green and start publishing sensor data to the configured broker.
☁️ Connecting to Anedya.io
To connect to the Anedya.io cloud platform:
- Log in to the device's captive portal.
- Navigate to the MQTT settings page.
- By default, MQTT functionality is disabled.
Toggle the Enable MQTT switch to ON to activate configuration fields. - Set MQTT Platform to Self-Hosted Broker.
- Choose Anedya.io as the MQTT Platform.
- Enter the Broker Server Address and Port Number.
- (Optional) For secure communication:
- Enable Use SSL.
- Upload the Server SSL Certificate.
- Enter the Device ID and Connection Key provided by Anedya.io.
- Set the Publish Interval as desired.
- Click Save Settings to establish the connection.
📢 Note: For specific setup instructions related to your Anedya.io account, refer to the Anedya.io documentation.
✅ Once connected, your device will automatically start publishing sensor data to the configured broker.