I am trying to use the shield as a TCP client. I am following the instructions on the ESP8266 command examples PDF.
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
pinMode(A0, INPUT);
pinMode(A1, INPUT);
esp8266_config();
}
void esp8266_config()
{
delay(500);
Serial.println("AT+CWMODE_DEF=3"); //Set Wi-Fi mode to 3(SoftAP+Station mode)
Serial.println("AT+CWJAP=\"ssid\",\"password\"");
Serial.println("AT+CIPSTART=\"TCP\",\"192.168.1.222\",6100");
}
void loop() {
delay(1500);
Serial.println("AT+CIFSR");
}
In the loop function I am trying to get the IP address, but nothing is show on the server.
How do I do this on the arduino side.
I have a simple TCP server made in python on the PC, I tested with telnet and it accepts connections.
Thanks,
Regards
I think you’re talking about the VMA04/KA04 or WPSH04 ethernet shield in stead of VMA05… anyway,
In your posted code I can’t see which library you’re using. I see also you’ve used the ESP8266 board but the shield can’t be plugged in on that board. Strange. I think also that an ESP isn’t compatible for VMA04.