Doodle3D / doodle3d-client

The Doodle3D web interface that people can access on computers or tablets to draw doodles and control the Doodle3D WiFi box.
www.doodle3d.com
GNU General Public License v2.0
3 stars 8 forks source link

Network settings is display issue when rebooting in AP mode #246

Closed peteruithoven closed 10 years ago

peteruithoven commented 10 years ago

Currently the settings window network panel depends on a network status code to choose which radio button to select and which section to show. But when it boots in AP mode and it was previously in AP mode it will skip the Access point creation step. This means the status stays empty. Example:

{
    "data": {
        "bssid": "10:FE:ED:4C:CF:3C",
        "channel": 11,
        "encryption": "none",
        "localip": "192.168.10.1",
        "mode": "ap",
        "noise": -86,
        "quality_max": 70,
        "ssid": "Doodle3D-Winston",
        "status": "",
        "statusMessage": "",
        "txpower": 15
    },
    "status": "success"
}

The interface should handle this properly (especially for older versions) and we should fill the status and statusMessage in the above situation.

peteruithoven commented 10 years ago

You can safely assume that the status is 4 (access point created) when status is empty.