I have wriiten to publish a rfid value and while subscribing inside javascript, the socket connection is lost and I have attached the screenshot of my console. value.php I am trying to connect using hivemq broker and using port number of 8000 but it’s not connecting. app.js Answer First, are you 100% sure that port 8000 is configured to support
Tag: paho
Connection failed – trying to connect to the mosquitto broker using React native
I tried to bind MQTT with the react native. When trying to connect to the broker, when I run my code, After a few minutes I get the following error: here is the error Object { “errorCode”: 7, “errorMessage”: “AMQJS0007E Socket error:undefined.”, “invocationContext”: undefined, } Answer We solved this by edit the mosquitto config file to either add a new
Mosquitto and simple Paho JS Client
I am trying to get a simple mqtt broker set up and access it from a web page. I have had pretty much 0 luck. I’ve got mosquitto 2.0.14 downloaded and running. Here’s my configuration file: This generates the following log when I run mosquitto -c mosquitto_conf -v Here’s my html file, which I simply open in the browser. It