To force Ethernet only, clear Wi-Fi credentials?

hello

the particle documentation shows example code for using ethernet

it says:

// To force Ethernet only, clear Wi-Fi credentials
    Log.info("Clear Wi-Fi credentionals...");
    WiFi.clearCredentials();

why is that?

also i do not see this used in @rickkas7 EthernetCellularRK library

i just want to use ethernet if it is connected at startup and otherwise use wifi (for which the credentials might have set)

thanks
frank

That's only part of the test program to make sure it's not connecting to Wi-Fi. You don't need to use that in your application.

well that clears it up! thanks