I have esp8266 firmware. I have stack in two weeks for trying connection with the arduino. I have try some libraries to use the firmware. The last library that I use is : GitHub - itead/ITEADLIB_Arduino_WeeESP8266: An easy-to-use Arduino ESP8266 library besed on AT firmware..
I try to open the example from the libraries above, here is the code after I modified:
#include <SoftwareSerial.h>
#include "ESP8266.h"
#define SSID "ITD.staff"
#define PASSWORD "itdnew2015"
SoftwareSerial myserial(3,2);
ESP8266 wifi(myserial);
void setup(void)
{
Serial.begin(9600);
Serial.print("setup begin\r\n");
Serial.print("FW Version: ");
Serial.println(wifi.getVersion().c_str());
Serial.print("List :");
Serial.println(wifi.getAPList().c_str());
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)
{
}
here is the output not shown the list AP arround :
setup begin
FW Version: AT)�MR
AT veqsion:0.21.0'0
SDK vershßn:0.9.5
OK
List :AT+CWœA(
ERRO¢
to station err
Join AP failure
setup end
please anybody help me