pfod app

SUCCESS
I made my own TCP client and now I can send/receive data over wifi under my Windows application :
Vstiek_2017-07-14-3.JPG

Alex
Attachment: https://forum.ardumower.de/data/media/kunena/attachments/1183/Vstiek_2017-07-14-3.JPG/
 
Zuletzt bearbeitet von einem Moderator:
Trying to get working communication between arduino and ESP8266 :
I used code from the ardumower :


Code:
mySerialmonitor.println(F("Sending ESP8266 Config"));
Serial.begin(115200);        //komunikace s WiFi 
   Serial.println("config:SSID,pass,192.168.1.120,192.168.1.1,255.255.255.0");
    Serial.flush();
    Serial.end(); //ESP8266port.begin(ESP8266_BAUDRATE);


but not sure how to read a answer and print on the console.

I tried this :


Code:
if(Serial.available())
  {
    String answer = "";
    while(Serial.available())
                      {
                         char d = Serial.read(); // read the next character.
                         answer+=d;
                      }  
     mySerialmonitor.println(answer);                   
  }


But no answer

Thanks for help

Alex
 
Oben