henrik...

Thanks so much!! for your example.

I was able to connect to my ESP module via an FTDI/USB adapter and send the commands you listed in your example from a terminal program (termie.exe) and achieve the same results (after connecting to my device from a browser.

Now to sharpen up your code and program it into my favorite PIC

It's good simple examples like yours that can clear up a lot of confusion.

good stuff!!