iwlist

0.0.5 • Public • Published

iwlist

parses iwlist output on linux computers. tested on raspberry pi running raspbian (debian)

@substack wrote this for hacking into flying robots but told me to publish it to github and npm because he was busy

install

npm install iwlist

instantiate

var iw = require('iwlist')('wlan0')

scan(callback)

returns list of nearby wireless networks sorted by signal strength (high to low)

connect(essid, callback)

joins a wireless network by ESSID

disconnect

disconnects from the current network. callback not implemented yet but it returns the spawned child process stream for iwconfig

note: this doesnt seem to work on raspbian

associated(cb)

cb takes (err, associated) where associated is true if the computer is currently connected to a wireless access point

online(cb)

tries to resolve google.com and calls the callback with (err). if there is no err it means you are online

license

BSD LICENSED

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.5
    5
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.5
    5
  • 0.0.4
    1
  • 0.0.3
    1
  • 0.0.2
    1
  • 0.0.1
    1

Package Sidebar

Install

npm i iwlist

Weekly Downloads

9

Version

0.0.5

License

none

Last publish

Collaborators

  • maxogden