Application concept Validation

Have a look at the docs "Reference" under WiFi and WiFi.connect() to do this


If you gave some more info about your OS and your problem there might have been ...
e.g. this one (it also installs dfu-util and Particle CLI)