2 Replies Latest reply on Jun 14, 2016 6:46 AM by Intel Corporation

    Arduino101 doesn't work using ESP8266.

    Mattmen

      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

       

      program to follow:

       

      #include <SoftwareSerial.h>

      #include <ESP8266.h>

       

       

      #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);

      digitalWrite(LED,LOW);

      delay(1000);

      }

       

       

       

       

      Is this program mistake?