(request: WSGIRequest)
return HttpResponse()
Set the home network.
    The hotspot will not be created if connected to this wifi.
Set the home network.
    The hotspot will not be created if connected to this wifi.
Set the home network . The hotspot will not be created if connected to this wifi .
def set_homewifi_ssid(request: WSGIRequest) -> HttpResponse:
    """Set the home network.
    The hotspot will not be created if connected to this wifi."""
    homewifi_ssid = request.POST.get("value")
    if homewifi_ssid is None:
        return HttpResponseBadRequest("homewifi ssid was not supplied.")
    with open(os.path.join(settings.BASE_DIR, "config/homewifi"), "w+") as f:
        f.write(homewifi_ssid)
    return HttpResponse()
def set_homewifi_ssid ( request : WSGIRequest ) -> HttpResponse : homewifi_ssid = request . POST . get ( "value" ) if homewifi_ssid is None : return HttpResponseBadRequest ( "homewifi ssid was not supplied." ) with open ( os . path . join ( settings . BASE_DIR , "config/homewifi" ) , "w+" ) as f : f . write ( homewifi_ssid ) return HttpResponse ( )