Serial read SSID/PASS for wifi connection (fail)

Which brings us back to my post #1

Solutions

  • you don't send CR/LF
  • instead of reading till LF (10) you read till CR (13) and get rid of the following data in the serial buffer to prepare for the next read
  • you keep reading it like you do and clean up your string and replace the CR which is at the end by '\0'
  • you don't use readBytesUntil and implements your own Serial handling code

Plenty of options !