Skip to content

Coderbot Network Configuration

Stephen Withers edited this page Jul 21, 2015 · 2 revisions

Default Behaviour

CoderBot it set to look for a router named Lboro_Coderbot_Hub. The wifi script in wifi.py is then run and the connection to the router is tested.

The default client access is defined in /etc/network/interfaces, which should be this by default: auto lo iface lo inet loopback iface eth0 inet dhcp

allow-hotplug wlan0 iface wlan0 inet dhcp

wpa-ssid "Lboro_Coderbot_Hub" wpa-psk "welovepis"

If there is no connection the program will start hostapd and switch to AP hotspot mode. The Hotspot info is located in /etc/hostapd/hostapd.conf which shoule be like this:

interface=wlan0 driver=nl80211 #driver=rtl871xdrv ctrl_interface=/var/run/hostapd ctrl_interface_group=0 ssid=coderbot hw_mode=g channel=8 wpa=2 wpa_passphrase=coderbot wpa_key_mgmt=WPA-PSK wpa_pairwise=CCMP rsn_pairwise=CCMP beacon_int=100 auth_algs=3 wmm_enabled=1

Coderbot Network Configuration

If the pi is in client mode, you can connect from the browser using the ip defined in the interfaces file(TODO)

If the pi is in hotspot mode it the website will be hosted at 10.0.0.1:8080

Clone this wiki locally