Replacing Softwareserial by Altsoftserial

Hi all

I have a Uno connected to a ESP8266 to send a GET request to a webserver. I use softwareserial and wifiesp library like this:

WiFiEspClient client;
#include <SoftwareSerial.h>
SoftwareSerial Serial1(8,9);

  // initialize serial for ESP module
  Serial1.begin(9600);
  // initialize ESP module
  WiFi.init(&Serial1);

...

    // Make a HTTP request
    client.println(F("GET /sensor.php?id=1 HTTP/1.1"));
    client.println(F("Host: www.domain.com"));
    client.println(F("Connection: close"));
    client.println();

    //read HTTP response
    while (client.connected()) {
      while (client.available()) { 
        char ch=client.read();
        Serial.print(ch);
      }
    }

The request is done and I can see the HTTP response on the serial monitor.
Now i want to replace softwareserial for Altsoftserial so i made this changes:

//#include <SoftwareSerial.h>
//SoftwareSerial Serial1(8,9);

#include <AltSoftSerial.h>
AltSoftSerial Serial1;

I double check my wires, ESP8266 module is working, request is sent to PHP page but i cannot see HTTP response on the serial monitor.

If i put back softwareserial on code, it works ok.

Any ideas?

turn on some debug prints of the WiFiEsp library to see what is going on

Well, according to Altsoftserial author, this library doesn't work with ESP...

NeoSwSerial is a little better then SoftwareSerial

Hi geologic.

I'm just about to do the same as you, try replacing softwareserial with Altsoftserial; did you get this sorted please?

fixit9660:
Hi geologic.

I'm just about to do the same as you, try replacing softwareserial with Altsoftserial; did you get this sorted please?

why?

Juraj:
why?

I've replaced it because the comms are corrupted when using SoftwareSerial with an Arduino Uno to talk to an M590 Module. Comms are perfect when using Altsoftserial. It's not a logic level conversion issue, I've observed the perfect translation of signal levels in both directions using my storage oscilloscope. Similarly I've confirmed my supply voltages are all exactly correct with no noise/ripple, or drop-out due to too much current being drawn. Ive even used a different Terminal Emulator to send and receive AT commands. I've even tried varying the baud rates with varying degrees of success.

The only thing that makes any difference is changing from SoftwareSerial to Altsoftserial. I'd say that's pretty damning evidence.