Doodle3D / doodle3d-firmware

The API of the Doodle3D WiFi box. This can for example talk to print3d, save settings, update the firmware etc.
www.doodle3d.com
GNU General Public License v2.0
13 stars 9 forks source link

Creates "Doodle3D-000000" hotspot #29

Closed peteruithoven closed 9 years ago

peteruithoven commented 9 years ago

wifibox.log:

CGI invocation
06-12 14:02:49 (info)     =======rest api (api debugging)=======
06-12 14:02:50 (info)     Doodle3D version: 0.10.5-a
06-12 14:02:50 (info)     running in autowifi mode
06-12 14:02:50 (info)     current wifi name: <nil>, mode: Unknown
06-12 14:02:50 (info)     ssid of self: Doodle3D-000000
06-12 14:02:50 (info)     start wifi scan
06-12 14:02:50 (info)     wifi scan done
06-12 14:02:50 (info)     visible networks: 
06-12 14:02:50 (info)     known networks: Vechtclub XL F1.19/sta, Doodle3D-4CCE92/ap, Doodle3D-000000/ap, OpenWrt/ap
06-12 14:02:50 (info)     network:setStatus: 3 | Creating access point 'Doodle3D-000000'...
peteruithoven commented 9 years ago

The api config in /etc/config/wireless:

config wifi-iface
    option network 'wlan'
    option encryption 'none'
    option device 'radio0'
    option mode 'ap'
    option ssid 'Doodle3D-000000'
    option disabled '1'

We fall back to this ssid when the macaddress can't be read from: /sys/class/net/wlan0/address It also caches the address, not sure yet how that works exactly.

peteruithoven commented 9 years ago

Increasing the timeout before starting our wifibox code seems to fix this. For a better solution see: https://github.com/Doodle3D/doodle3d-firmware/issues/32