Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

StartNetwork

Copied from nerves_examples / hello_network example

Configures the primary network interface using DHCP and announces itself on the network using SSDP.

You can start this example and then find your device on the network using the cell command-line tool (see the cell-tool project).

Usage

Testing DNS name resolution

There is a HelloNetwork.test_dns function that you can call in the IEx console to check that your Nerves device indeed has successfully established network connectivity and that DNS name resolution works. The expected output when DNS resolution is available is something like this:

iex(1)> HelloNetwork.test_dns
{:ok,
 {:hostent, 'nerves-project.org', [], :inet, 4,
  [{192, 30, 252, 154}, {192, 30, 252, 153}]}}

Limitations

Supports only IPv4LL and DHCP addressing (no interface for static IPv4 configuration yet).

Roadmap

  • Add documentation.
  • Add support for static IPv4 configuration.
  • Add test cases.

About

Utilize nerves_networking library to start network adapter for nerves build of LinkBlox application

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages