-->
Page 1 of 1

Can't connect to my ESP

PostPosted: Sat Apr 18, 2020 4:03 am
by plevi99
My problem is, I tried assigning software serial to the ESP's RX TX pins, because hardware serial didn't work (I was trying to connect to an STM32), but now my computer can't connect to the ESP and I can't upload anything.
I have a Wemos D1 mini, and the code I uploaded to it was this:
#include <SoftwareSerial.h>

SoftwareSerial swSer(3, 1, false, 128);

void setup() {
// put your setup code here, to run once:
swSer.begin(115200);
}

void loop() {
// put your main code here, to run repeatedly:
if(swSer.available())
{
swSer.readStringUntil('\n');
//Serial.println("Recv");
}
else
{
swSer.print('s');
delay(50);
}
}

Is there any way to make this microcontroller work again?
Thank you for your answers in advance! :D