Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add serde defaults to the client configuration struct (#78)
When deserializing this before the addition of PMF and scan method, one could pass a json struct containing just `r#"{"ssid":"abc", "auth_method":"WPA2Personal", "password":"123"}"#` And this would automatically deserialize despite omitting the `bssid` and `channel`, neither of which are usually known when connecting to WiFi. The new code uses the defaults for scan method and PMF config, which are more of an advanced use-case concern.
- Loading branch information