This may seem like a pretty basic one but I am executing the query: var sql = 'SELECT command FROM motoron2 ORDER BY id DESC LIMIT 1'; and seeing the following from console.log(result) --> [ RowDataPacket { command: 1 } ]
How can I make a variable named command equal to 1 from this?
Below is...
After some troubleshooting, the problem ended up being with the section of this section of the code.
count+=1; //quit script after the execution of two loops
if (count==2) //ens script
clearTimeout(timer_id); //stop timer
client.end();
Once I removed this section, I was able to...
I have a script that I've been trying to figure out. It is a test script for a client to publish messages to an MQTT broker server under a certain topic, which the client then subscribes to so it can confirm the broker server got processed its message. The main code is posted at the very...
You may be right though they may just be allowing scripts that are coming from specific browsers. HTTP requests are going through now so whatever they did it works. Just hope I don't run into this with every new IP I get.
Looks like we were right. It is server level firewall, so they mentioned they can whitelist IPs but sometimes my devices change addresses so don't know if this will work.
I have tried a few different PHP scripts like var_dump and am getting the same results. I am thinking that its got to be something on the Apache server not the client.