Sha256: 2636776b7991d6b3160b1590bb7c66f936f55a774f4dbe3ffbf7c2e6bc12ac8b

Contents?: true

Size: 1.01 KB

Versions: 2

Compression:

Stored size: 1.01 KB

Contents

# WpaCliRuby

TODO: Write a gem description

## Installation

Add this line to your application's Gemfile:

    gem 'wpa_cli_ruby'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install wpa_cli_ruby

## Usage

    require 'wpa_cli_ruby'

    wpa_cli = WpaCli.new

    # Get a list of available Wifi access points
    wpa_cli.scan
    scan_results = wpa_cli.scan_results

    # Connect to the first network
    network_id = wpa_cli.add_network
    wpa_cli.set_network(network_id, "ssid", scan_results.first.ssid)
    wpa_cli.set_network(network_id, "psk", "password")

    # You can pass tokens to wpa supplicant using symbols
    wpa_cli.set_network(network_id, "key_mgmt", :NONE)

    # Enable the network to connect immediately
    wpa_cli.enable_network(network_id)

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
wpa_cli_ruby-0.0.3 README.md
wpa_cli_ruby-0.0.2 README.md