I have been thrown this error when manually adding ?mqt_port=2226 to my graph.html request:
Uncaught Error: AMQJS0012E Invalid type string for port.
Client http://myhost:2225/spin_graph/js/mqttws31.js:1595
connectToMQTT http://myhost:2225/spin_graph/js/mqtt_client.js:77
init http://myhost:2225/spin_graph/js/mqtt_client.js:53
I have been able to resolve this by adding these to lines at 1573:
if (typeof port !== "number")
port = parseInt(port);
I have to do this type of defining the MQTT Websockets port as I don't have the ability to use 1883/1884 routed through the firewall because of an already existing MQTT server, and defining these ports in the config for spinweb does not overrule these static defines
https://github.com/SIDN/spin/blob/c6b7ec216997572d3190bf8815684a1b4c55cea5/src/spinweb/static/spin_graph/js/mqttws31.js#L1593
I have been thrown this error when manually adding ?mqt_port=2226 to my graph.html request:
I have been able to resolve this by adding these to lines at 1573:
I have to do this type of defining the MQTT Websockets port as I don't have the ability to use 1883/1884 routed through the firewall because of an already existing MQTT server, and defining these ports in the config for spinweb does not overrule these static defines