Вот что посмотри
#include <SoftwareSerial.h>
#define SSID "xxxxxxxx"
#define PASS "xxxxxxxx"
#define DST_IP "220.181.111.85" //baidu.com
SoftwareSerial dbgSerial(0, 1); // RX, TX // here i tried with 10,11 and 2,3
void setup()
{
// Open serial communications and wait for port to open...