0

Hi i am using ESP8266EX along with Arduino Due rev3 to check wifi status. when i compile my following sketch compiler give me error User\Awais\Document\Arduino\liberaries\espsoftserialmaster\softserial.cpp:27:18: fatal error: gpio.h: no file or directory found any one help me solve this problem

 #include <SoftwareSerial.h>
 SoftwareSerial ESPserial (15,14); //RX|TX
 void setup() {
 // put your setup code here, to run once:
 Serial.begin(115200);
 ESPserial.begin(115200);
 Serial.println("NL & CR");
}
 void loop() {
 // put your main code here, to run repeatedly:
 if (ESPserial.available()){
 Serial.write(ESPserial.read());
 }
if (Serial.available()){
ESPserial.write(Serial.read());
}
 }
asked Sep 22, 2018 at 4:21

1 Answer 1

1

And where did you get that SoftwareSerial library? SoftwareSerial libraries are architecture dependent. You can't use AVR ore esp8266 SoftwareSerial library with ARM.

Due has no need for SoftwareSerial, it has 4 Serial ports configured.

answered Sep 22, 2018 at 5:02

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.