I’m new to MQTT so forgive me for my lack of knowledge.
We manufacture radio telemetry systems using UHF radio modules but I’m developing an alternative module to communicate via MQTT. I have designed a wi-fi interface around an Espressif ESP32-C3 module, running their ESP-AT firmware so the interface to out host is a serial port using AT commands. Their User Guide includes examples for configuring the module.
My first problem is that I tried to install HiveMQ on a Windows laptop as a platform for developing our interface driver, but it doesn’t install properly. The log shows the following:
2024-09-23 11:36:24,263 INFO - Starting HiveMQ Enterprise Server
2024-09-23 11:36:24,265 INFO - HiveMQ version: 4.32.0
2024-09-23 11:36:24,265 INFO - HiveMQ home directory: S:\Dropbox\Files\Software\XC_Net\ESP\hivemq
2024-09-23 11:36:24,345 INFO - Log Configuration was overridden by S:\Dropbox\Files\Software\XC_Net\ESP\hivemq\conf\logback.xml
2024-09-23 11:36:24,739 INFO - Successfully loaded configuration from ‘S:\Dropbox\Files\Software\XC_Net\ESP\hivemq\conf\config.xml’.
2024-09-23 11:36:25,070 INFO - This node’s ID is WTLSv
2024-09-23 11:36:25,071 INFO - Clustering is disabled
2024-09-23 11:36:34,943 INFO - No valid license file found. Using trial license, restricted to 25 connections.
2024-09-23 11:36:36,419 INFO - No valid license file for Data Hub found. Using free license, restricted to 1 policy.
2024-09-23 11:36:36,678 INFO - Audit Logger started.
2024-09-23 11:36:36,780 INFO - This node uses ‘8’ CPU cores.
2024-09-23 11:36:36,797 INFO - Starting HiveMQ extension system.
2024-09-23 11:36:36,900 INFO - Starting extension with id “hivemq-allow-all-extension” at S:\Dropbox\Files\Software\XC_Net\ESP\hivemq\extensions\hivemq-allow-all-extension
2024-09-23 11:36:36,914 WARN -
################################################################################################################This HiveMQ deployment is not secure! You are lacking Authentication and Authorization.
Right now any MQTT client can connect to the broker with a full set of permissions.
For production usage, add an appropriate security extension and remove the hivemq-allow-all extension.
You can download security extensions from the HiveMQ Marketplace (HiveMQ Extensions Marketplace: MQTT Integration Made Easy).
################################################################################################################
2024-09-23 11:36:36,916 INFO - Extension “Allow All Extension” version 1.1.0 started successfully.
2024-09-23 11:36:39,117 INFO - WTLSv: no members discovered after 2010 ms: creating cluster as first member
2024-09-23 11:36:39,162 INFO - No user for HiveMQ Control Center configured. Starting with default user
2024-09-23 11:36:39,162 INFO - Starting HiveMQ Control Center on address 127.0.0.1 and port 8080
2024-09-23 11:36:39,239 INFO - Mounting HiveMQ Control Center V2 Preview
2024-09-23 11:36:39,814 ERROR - Not able to start HiveMQ Control Center: Failed to bind to /127.0.0.1:8080
2024-09-23 11:36:39,842 INFO - Starting TCP listener on address 0.0.0.0 and port 1883
2024-09-23 11:36:39,874 ERROR - Could not start TCP Listener on port 1883 and address 0.0.0.0. Is it already in use?
2024-09-23 11:36:39,875 ERROR - Could not bind any listener. Stopping HiveMQ.
2024-09-23 11:36:39,879 INFO - Shutting down HiveMQ. Please wait, this could take a while…
2024-09-23 11:36:39,890 INFO - Shutting down listeners and clients
2024-09-23 11:36:39,891 INFO - Shutdown of listeners is done
2024-09-23 11:36:39,891 INFO - No clients are connected, proceeding with shutdown
2024-09-23 11:36:43,133 INFO - Shutting down extension system
2024-09-23 11:36:43,135 INFO - Stopping extension with id hivemq-allow-all-extension
2024-09-23 11:36:43,137 INFO - Extension “Allow All Extension” version 1.1.0 stopped successfully.
2024-09-23 11:36:45,826 INFO - Shutdown completed.
You will see that it includes Not able to start HiveMQ Control Center: Failed to bind to /127.0.0.1:8080. The HiveMQ isntructions say that the installation can be tested by browsing http://localhost:8080 but that gives Access error 404. However it is listening on port 1883, as shown from the command line:
C:\Users\L-G>netstat -an | findstr “1883”
TCP 127.0.0.1:1883 0.0.0.0:0 LISTENING
TCP [::1]:1883 [::]:0 LISTENING
I have tried rebooting the laptop in case another app is using the port but I’ve run out of ideas for other solutions.
My second problem is that once I have established communication via the local HiveMQ platform I will need th access a cloud server so we can offer the system to customers. However the Espressif user manual only goes as far as accessing a local server. Does anyone have any experience of using AT commands to access a remote server?