Coder Social home page Coder Social logo

brucepom / nerves_interim_wifi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nerves-project-attic/nerves_interim_wifi

0.0 2.0 0.0 52 KB

Connect to WiFi networks on Nerves platforms

License: Apache License 2.0

Makefile 3.08% Elixir 84.46% C 12.46%

nerves_interim_wifi's Introduction

Nerves.InterimWiFi

Build Status Hex version

Connect to WiFi networks on Nerves platforms.

Installation

If available in Hex, the package can be installed as:

  1. Add nerves_interim_wifi to your list of dependencies in mix.exs:

    def deps do [{:nerves_interim_wifi, "~> 0.1.0"}] end

  2. Ensure nerves_interim_wifi is started before your application:

    def application do [applications: [:nerves_interim_wifi]] end

  3. Set the regulatory domain in your config.exs. This should be set to the ISO 3166-1 alpha-2 country code where the device is running. If your device ships to more than one country, see Nerves.InterimWifi.set_regulatory_domain\1.

    if unset, the default regulatory domain is the world domain, "00"

    config :nerves_interim_wifi, regulatory_domain: "US"

Running

Setup your WiFi connection by running:

Nerves.InterimWiFi.setup "wlan0", ssid: "my_accesspoint_name", key_mgmt: :"WPA-PSK", psk: "secret"

If your WiFi network does not use a secret key, specify the key_mgmt to be :NONE. Currently, wireless configuration passes almost unaltered to wpa_supplicant.ex, so see that project for more configuration options.

Limitations

Currently, only IPv4 is supported, and IP addresses can only be assigned via DHCP. The library is incredibly verbose in its logging to help debug issues on new platforms in prep for a first release. This will change. The library is mostly interim in its structure. Please consider submitting PRs and helping make this work reliably across embedded devices.

nerves_interim_wifi's People

Contributors

brucepom avatar electricshaman avatar entone avatar fhunleth avatar mobileoverlord avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.