Using the CLI to assign wifi credentials to an Argon

When initializing an Argon with wifi credentials one can enter this from a terminal

particle serial wifi --file credentials.json

where the json file has the following format

{
  "network": "my_ssid",
  "security": "WPA2_AES",
  "password": "my_password"
}

What is the format of this file if I wanted to give it multiple networks? Do I just wrap the entire doc in square brackets and then add another network like this?

[
  {
    "network": "my_ssid",
    "security": "WPA2_AES",
    "password": "my_password"
  }, 
  {
    "network": "my_ssid2",
    "security": "WPA2_AES",
    "password": "my_password2"
  }
]

In order to set multiple credentials you need to call the CLI multiple times, each with a file containing a single credential.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.