Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By yoavshtainer
#34424 you are awesome! thank you very mach!!

before i traid to get a value from the client to the server, and i dont knew how to do it' but my friend help me and i got it!
in the server i enterd in the handle:
Code: Select allString num_from_client = server.arg("ClientNum");
 server.send(200, "text/html", "<html><head><script>window.onload =  function() { setInterval(function() {window.location.replace('/');}, 1000); };</script></head><body><h1>Get value mode</h1>Got " + num_from_client + " from client</body></html>");
Serial.println(num_from_client);

and in the client i add:
Code: Select allint client_num_val = 99;
  url = url + "?ClientNum=" + String(client_num_val);


and now i get value from the client automatcly (i hope i wrote it right...) i need to do some fixing now but the base is ready... :D :D

and again thank you very mach!!
User avatar
By yoavshtainer
#34541 i have new question, :?:

i can spaek between 2 esp through the serial? i want to connect them whis 2 ttl to usb devices and one will send AT command to the second one through it...

i need special things for it?

when i use the ttl to usb whis the PC i just need to connect the GND,RX,TX.

now i'm connecting the VCC too, but they dont send data to one eich other... :?: :?: :?:

what i need to do?

(the start was talking to modem but when i understand that his not respond i get that the ttl to usb dont turn on the TX,RX led's)