ESP8266 not work as well with arduino
Posted: Fri Aug 14, 2015 2:45 am
I have ask to forum arduino, but no reply.
I have problem to connecting the esp8266 to arduino.
the wiring diagram like the picture below.
I use library from https://github.com/itead/ITEADLIB_Arduino_WeeESP8266
Here is my code.
the output like picture below.
pls help me
I have problem to connecting the esp8266 to arduino.
the wiring diagram like the picture below.
I use library from https://github.com/itead/ITEADLIB_Arduino_WeeESP8266
Here is my code.
Code: Select all
#include "ESP8266.h"
#include <SoftwareSerial.h>
#define SSID "ITD.staff"
#define PASSWORD "itdnew2015"
SoftwareSerial myserial(3,2); // rx=3,tx=2
ESP8266 wifi(myserial);
void setup(void)
{
Serial.begin(9600);
// wifi.begin(115200);
// Serial.println(wifi.print("AT"));
Serial.print("setup begin\r\n");
Serial.print("FW Version: ");
Serial.println(wifi.getVersion().c_str());
Serial.print("Kick : ");
Serial.println(wifi.kick());
Serial.print("Restart : ");
Serial.println(wifi.restart());
if (wifi.setOprToStation()) {
Serial.print("to station ok\r\n");
} else {
Serial.print("to station err\r\n");
}
if (wifi.joinAP(SSID, PASSWORD)) {
Serial.print("Join AP success\r\n");
Serial.print("IP: ");
Serial.println(wifi.getLocalIP().c_str());
} else {
Serial.print("Join AP failure\r\n");
}
Serial.print("setup end\r\n");
}
void loop(void)
{
}
the output like picture below.
pls help me