Arduino Yun Httprequest GET sending json parameters

Hello guys,

I’m trying to send json data by curl using Processor Library and Bridge (arduíno Yun). But this is not working.

Anybody here can help me with this issue?
Below is my code

#include <Process.h>

void setup() {
Serial.begin(9600); // initialize serial communication
while (!Serial) ;

Bridge.begin(); // Initialize Bridge

}

void loop() {
Process p;

String s = “curl http://arduinoweatherstation.esy.es/insertData.php?data=[{“wstn_prmt_seq”:“1”,“wstn_value”:“77.00”}]”;

p.runShellCommand(s);

delay(3000);
}

tks! :wink:

@alipsilv, please use markup when posting code. See attached.
TIA
Jesse

On your issue, you likely have to URL encode the paramters, but I think CURL takes care of that. Even so, you likely wan to use addParameter().

We’ve had this question before, I don’t recall the answer. I’m sure someone else does.

Jesse

arduino_markup.png