[FEATURE REQUEST] Here document support for particle serial wifi?

It would be great if Here Documents were supported by particle serial wifi --file. That way I would have a more reliable method for setting up devices from within scripts.

With Here Document support I would be able to do something like:

particle serial wifi --file << PARTICLEWIFI
{
  "network": "my_ssid",
  "security": "WPA2_AES",
  "password": "my_password"
}
PARTICLEWIFI

I’ve made a GitHub Issue:

Hi @nrobinson2000

It already can take a JSON. What would be the advantage of this particular file format over JSON?

1 Like

This is a JSON. It’s just through a heredoc instead of an actual JSON file. The advantage of using this is that scripts wouldn’t have to create a file with credentials inside and would instead just send it through with a heredoc.