Worked great, thank you for pointing me in the right direction.
It took me a while to figure out how to make the code generated by the code builder to work.
This is what I’ve done:
- Add the reference to SoftwareSerial.h
- Comment the line “define EspSerial Serial1”
- Use the pins 8,9 in the Serial defintion: SoftwareSerial EspSerial(8, 9); // RX, TX
- Change Baud rate to 9600 (it does not work with 115200)
And, important, use a 2G access point. I had to add another SSDI to my Unify network to make it work.
I am sharing my working code here: