Community
cancel
Showing results for 
Search instead for 
Did you mean: 
idata
Community Manager
1,400 Views

Arduino101 doesn't work using ESP8266.

Jump to solution

Arduino 101 can't connect to ESP8266 from source code, but Arduino uno can connect to it using same program.

library URL:https://github.com/itead/ITEADLIB_Arduino_WeeESP8266 https://github.com/itead/ITEADLIB_Arduino_WeeESP8266

program to follow:

# include

# include

# define rxPin 11

# define txPin 10

# define SSID "*******"

# define PASSWORD "******"

const int LED = 13;

SoftwareSerial mySerial(rxPin,txPin);

ESP8266 wifi(mySerial);

void setup(void)

{

pinMode(LED,OUTPUT);

Serial.begin(9600);

while(!Serial);

delay(5000);

Serial.print("setup begin\r\n");

wifi.leaveAP();

Serial.print("FW Version: ");

Serial.println(wifi.getVersion().c_str());

if (wifi.setOprToStationSoftAP()) {

Serial.print("to station + softap ok\r\n");

} else {

Serial.print("to station + softap err\r\n");

}

if (wifi.joinAP(SSID, PASSWORD) || wifi.getLocalIP()) {

Serial.print("Join AP success\r\n");

Serial.print("IP: ");

Serial.println(wifi.getLocalIP().c_str());

} else {

Serial.print("Join AP failure\r\n");

}

if (wifi.disableMUX()) {

Serial.print("single ok\r\n");

} else {

Serial.print("single err\r\n");

}

Serial.print("setup end\r\n");

}

void loop(void)

{

digitalWrite(LED,HIGH);

delay(1000);

<span style="color: # 222222; font-family: 'DejaVu Sans Mono', Monaco, Consolas, monospace; font-size: 13.2295...

0 Kudos

Accepted Solutions
idata
Community Manager
107 Views

Hi Mattmen,

 

 

Even though the Arduino 101 board is based on the Curie module, the support is provided directly by Arduino.cc. As FGT already mentioned, I recommend you to post your question in the Arduino 101 forum in the following site: https://forum.arduino.cc/index.php?board=103.0. You will receive better assistance there.

 

 

Regards,

 

-Diego

View solution in original post

2 Replies
FTinetti
Honored Contributor I
107 Views

Hi Mattmen,

Arduino 101 can't connect to ESP8266 from source code, but Arduino uno can connect to it using same program.

...

 

Is this program mistake?

If it works in Arduino, then the program is fine (as well as hardware, and every involved software such as libraries). Intel products are not always compatible with hardware/software working fine in the "Arduino world".

I do not have any Arduino 101 at hand, I've made some minimal experiments with Intel Galileo-ESP8266, like that reported at .

I'd suggest asking in an Arduino 101 specific forum, since this one is intended for Intel Galileo. The (Arduino site) suggested forum for Arduino 101 is https://forum.arduino.cc/index.php?board=103.0 https://forum.arduino.cc/index.php?board=103.0

https://forum.arduino.cc/index.php?board=103.0 Arduino 101

HTH,

Fernando.

idata
Community Manager
108 Views

Hi Mattmen,

 

 

Even though the Arduino 101 board is based on the Curie module, the support is provided directly by Arduino.cc. As FGT already mentioned, I recommend you to post your question in the Arduino 101 forum in the following site: https://forum.arduino.cc/index.php?board=103.0. You will receive better assistance there.

 

 

Regards,

 

-Diego

View solution in original post