Can you check how many bytes were actually read into ssid and pass? Print the characters one by one in ASCII to see if you have not captured a CR since you read till LF (is your console set up to send CR/LF each time?)
Can you check how many bytes were actually read into ssid and pass? Print the characters one by one in ASCII to see if you have not captured a CR since you read till LF (is your console set up to send CR/LF each time?)