-
Notifications
You must be signed in to change notification settings - Fork 0
Setting Up Devices
Dave Schmid edited this page Nov 22, 2024
·
2 revisions
- Contact Qingping to enable Private MQTT for your devices.
This feature allows your devices to communicate with a custom MQTT broker. - For more details, refer to the Qingping Private MQTT Protocols Guide.
-
Install and configure an MQTT broker of your choice, such as:
- Mosquitto
- EMQX
- HiveMQ
-
Configuration:
-
Broker Address:
tcp://192.168.x.x:1883
- Authentication: Set up a username and password for secure access.
- Enable TLS (optional): Add certificates for encrypted communication if required.
-
Broker Address:
-
Login to Qingping Portal:
Use your Qingping credentials to access the Qingping Device Portal. -
Select Your Devices:
Navigate to the list of registered devices. -
Update MQTT Server Settings:
-
Server Address:
tcp://<broker_address>:<port>
-
Authentication:
- Username: As configured in your broker.
- Password: As configured in your broker.
-
Topic Structure:
- Devices publish sensor data to
qingping/<device_mac>/up
. - Devices accept commands on
qingping/<device_mac>/down
.
- Devices publish sensor data to
-
Server Address:
-
Save and Apply Changes:
Confirm the changes and push the updated settings to the devices.
- Start your MQTT broker and verify it’s listening on the configured address and port.
- Use an MQTT client (e.g., MQTT Explorer or mosquitto_sub) to verify that devices are publishing data to
qingping/#
. - Look for incoming messages from your devices. Example topics:
qingping/<device_mac>/up
- Keep Credentials Secure: Ensure the MQTT broker username and password are stored securely.
-
Firewall Settings: Open the configured MQTT port (e.g.,
1883
or8883
for TLS) on your local network. - Verify Device Permissions: Devices must have proper access to your MQTT broker. Double-check your broker’s user authentication settings.