|
|
@ -452,6 +452,7 @@ STATIC mp_obj_t network_wlan_config(size_t n_args, const mp_obj_t *args, mp_map_ |
|
|
|
cfg.ap.channel = mp_obj_get_int(kwargs->table[i].value); |
|
|
|
break; |
|
|
|
} |
|
|
|
case MP_QSTR_hostname: |
|
|
|
case MP_QSTR_dhcp_hostname: { |
|
|
|
const char *s = mp_obj_str_get_str(kwargs->table[i].value); |
|
|
|
esp_exceptions(tcpip_adapter_set_hostname(self->if_id, s)); |
|
|
@ -538,6 +539,7 @@ STATIC mp_obj_t network_wlan_config(size_t n_args, const mp_obj_t *args, mp_map_ |
|
|
|
req_if = WIFI_IF_AP; |
|
|
|
val = MP_OBJ_NEW_SMALL_INT(cfg.ap.channel); |
|
|
|
break; |
|
|
|
case MP_QSTR_hostname: |
|
|
|
case MP_QSTR_dhcp_hostname: { |
|
|
|
const char *s; |
|
|
|
esp_exceptions(tcpip_adapter_get_hostname(self->if_id, &s)); |
|
|
|