I am passing WiFi credentials to P1 over UART. When the credentials are sent P1 tries to connect to WiFi using those credentials and if the credentials are wrong, P1 should wait till the credentials are sent from UART again. But this is not happening at present.
Instead, the P1 RGB LED blinks blue if the credentials are wrong. When I open Serial console and type something, it says waiting for binary file to be sent .... press a to abort. I think P1 entered listening mode where it is expecting credentials over USB. I want to define my custom listening mode. How do I do this?
bool notConnected = true;
while(!Serial.available()); //get WiFi SSID and password
//decode message format
notConnected = true;
bool ConnectToWiFi(char * ssid, char * pass)
bool ConnectToWiFi(char * ssid, char * password)