How to change MQTT broker's port?
To change MQTT broker's port, you need 7 steps:
1. Edit plugin.json
File path:/usr/bin/AXView30/SensorNetwork/plugin.json
, change the port number to what you want. For example: 11883.
2. Edit server.js
File path: /usr/bin/AXView30/SensorNetwork/Webservices/server.js
Add :11883
after mqtt://localhost
3. Edit webserviceclient.js
File path: /usr/bin/AXView30/SensorNetwork/Webservices/sockets/webserviceclient.js
Add :11883
after mqtt://localhost
4. Edit source_in.js
File path: /usr/bin/AXView30/SensorNetwork/Webservices/node-red-ext/nodes/protocol/source_in.js
Add :11883
after mqtt://localhost

5. Edit source_out.js
File path:/usr/bin/AXView30/SensorNetwork/Webservices/node-red-ext/nodes/protocol/source_out.js
Add :11883
after mqtt:localhost

6. Edit mosquitto.conf
File path: /etc/mosquitto/mosquitto.conf
Add line port 11883

7. Reboot device
Now AXview 3.0 is running on port 11883, reboot the device and enjoy!
Last updated
Was this helpful?