Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Search results

  1. F

    JavaScript Extract variable value from mysql query result

    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...
  2. F

    JavaScript Node.js MQTT example

    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...
  3. F

    Python Python HTTP Post to Apache

    Hello I have a super simple python script requesting to HTTP post to one of my web pages with PHP script. import requests url = 'https://domain.com/page.php' myobj = {'test': '1'} x = requests.post(url, data = myobj) print(x.text) Here is the code on the server side: <?php...
Back
Top Bottom