11 Commits

Author SHA1 Message Date
Matias Doyle
853de1e237 Emit non CTRL-* events as MESSAGE events
And add a Line prop to the WPAEvent struct which contains the original
line received from the wpa_supplicant.
2017-11-15 20:20:45 +01:00
Matias Doyle
676121199d Initial version of STATUS command
At the moment only returning a subset of the values you can get. That
will come later.
2017-11-09 20:52:46 +01:00
Matias Doyle
763b1685df Add func to enable all networks 2017-11-09 20:52:26 +01:00
Matias Doyle
a0e5516dbc Send DETACH message before Closing connection 2017-11-09 14:09:56 +01:00
Matias Doyle
ba0f86f6a1 Add SelectNetwork command 2017-11-06 13:11:22 +01:00
Matias Doyle
becc4580a5
Read and parse unsolicited messages
Currently only handling CTRL-EVENT-* messages and parses them to WPAEvent.
2017-10-16 11:26:17 +02:00
Matias Doyle
0402bbb5de
Add function to close unixgram connection 2017-09-19 15:38:36 +02:00
Matias Doyle
03f5226fe0
Add more commands (notably list_networks)
Add method wrappers for commands:

- DISABLE_NETWORK
- REMOVE_NETWORK
- REMOVE_NETWORK all (as separate method)
- RECONFIGURE
- REASSOCIATE
- RECONNECT
- LIST_NETWORKS
2017-09-06 18:15:56 +02:00
Matias Doyle
b70264bcf8
Expose more control interface commands 2017-09-05 15:56:03 +02:00
Dave Pifke
2928b06b23
Add basic documentation & tests
Add a couple of basic tests for the SCAN_RESULTS parser, and document
usage.
2017-05-25 12:48:59 -07:00
Dave Pifke
8a251ea4ef
Initial interface to wpa_supplicant scan results
This code connects to wpa_supplicant's control interface using a UNIX
datagram socket.  It can ping the daemon and fetch wifi network scan
results.

Documentation, tests, and additional functionality is forthcoming.
2017-05-23 19:02:04 -07:00