I am trying to send data from my Arduino to my database but it seems that the process is not successfully beginning. Here is my code for Arduino:
#include <Process.h>
#include <Bridge.h>
int temperature;
void setup() {
Bridge.begin(); // Initialize Bridge
}
void loop() {
int temperature = random(0, 100);
Process p;
p.begin("143.248.181.36/db.php");// 143.248.181.36 address of localhost.
p.addParameter(String(temperature));
p.run();
delay(5000);
}
I am using xampp and I put db.php inside the htcocs folder. Can anyone point out why it does not work?