How to read and set variable values on arduino by internet?

I saw a lot of websites that allows user to control arduino pins through internet by using ethernet shield, but its not what i really want.

I want to control variables through internet such as reading and setting there values, the aim is to read processed sensors readings and set multiple outputs at same time (setting each output pin through regular websites will not guarantee fast set of all pins at small time) beside giving arduino commands on what procedure to start so its response to situation will be fast and not wait for commands from internet... and such things..

Please help me in this, thank you so much.

I saw a lot of websites that allows user to control arduino pins through internet by using ethernet shield, but its not what i really want.

So, lets see what you really want.

I want to control variables through internet such as reading and setting there values, the aim is to read processed sensors readings and set multiple outputs at same time (setting each output pin through regular websites will not guarantee fast set of all pins at small time) beside giving arduino commands on what procedure to start so its response to situation will be fast and not wait for commands from internet... and such things..

Sounds to me like you DO want to control your Arduino over the internet. That requires either an Ethernet shield and acting as a server OR a PC that is performing the same role, talking to the Arduino over the serial port.

So, quit waving your arms and give a concrete example.

Thanks for your reply, I do know that I need an ethernet shield (i dont want to use a computer near the arduino)

here is an example: lets assume that we have an integer variable in arduino: int x; i want to be able to read it and change its value through internet such as sending: x=5; (changing x value to 5 through internet)

then reading x through internet will give me 5

thats all!

Take a look at Bitlash (http://bitlash.net) -- the telnet example does what you want, more or less: https://github.com/billroy/bitlash/blob/master/examples/bitlashtelnet2/bitlashtelnet2.pde

-br

Nice question, i got a similar one.

In my case, i jsut need two button on my index.html, when i push button1 i need to set +2 the values of a var. when i push button2, for example i need to set -2 the values of a var.

i have one button - when i push it, i want the Arduino to send me all its logged data on the SD card?

@maxhack.

I am facing same problem . I would like to know have you get any code for edting value from webserver. Let me know if you get it worked

I don't have received my arduino yet but my full time job is programmer (PHP) and I think it's very easy to implement it.

I will describe the procedure below.

You have to connect a GSM module with data enabled. You have to post/get data on specific URL at least once per hour/minute/second or day(s). The URL should be like http://web-server.com/get-configuration.php?imei=IMEI-HERE

it's device has his own IMEI and you can set specific configuration per device or you can use a standard key per device "Nick_dev","John_Dev".

After the HTTP connection it will get the server response back to adruino for example led_pin=14;led_delay=2000

You have to parse this data like here http://arduino.stackexchange.com/a/1237

So... if you response is on var "web_response" https://www.arduino.cc/en/Tutorial/GSMToolsTestGPRS

if (strchr(web_response,'led_')!=NULL) { arduinoLed=getValue('led_pin', '=', 0); arduinoLedDelay=atoi(getValue('led_delay', '=', 0));

}elseif(

etc......... )

The best format and less complicated is to have small response so give specific order to your parameters fistname;lastname;time;alertOn

Nick,Papadopoulos,20022017;1

I hope you like my logic, I don't know it works but it's make scene to me