@@ -332,7 +332,7 @@ STATIC mp_obj_t wifi_radio_connect(size_t n_args, const mp_obj_t *pos_args, mp_m
332
332
STATIC MP_DEFINE_CONST_FUN_OBJ_KW (wifi_radio_connect_obj , 1 , wifi_radio_connect );
333
333
334
334
//| ipv4_gateway: Optional[ipaddress.IPv4Address]
335
- //| """IP v4 Address of the gateway when connected to an access point. None otherwise."""
335
+ //| """IP v4 Address of the station gateway when connected to an access point. None otherwise."""
336
336
//|
337
337
STATIC mp_obj_t wifi_radio_get_ipv4_gateway (mp_obj_t self ) {
338
338
return common_hal_wifi_radio_get_ipv4_gateway (self );
@@ -347,8 +347,24 @@ const mp_obj_property_t wifi_radio_ipv4_gateway_obj = {
347
347
(mp_obj_t )& mp_const_none_obj },
348
348
};
349
349
350
+ //| ipv4_gateway_ap: Optional[ipaddress.IPv4Address]
351
+ //| """IP v4 Address of the access point gateway, when enabled. None otherwise."""
352
+ //|
353
+ STATIC mp_obj_t wifi_radio_get_ipv4_gateway_ap (mp_obj_t self ) {
354
+ return common_hal_wifi_radio_get_ipv4_gateway_ap (self );
355
+
356
+ }
357
+ MP_DEFINE_CONST_FUN_OBJ_1 (wifi_radio_get_ipv4_gateway_ap_obj , wifi_radio_get_ipv4_gateway_ap );
358
+
359
+ const mp_obj_property_t wifi_radio_ipv4_gateway_ap_obj = {
360
+ .base .type = & mp_type_property ,
361
+ .proxy = { (mp_obj_t )& wifi_radio_get_ipv4_gateway_ap_obj ,
362
+ (mp_obj_t )& mp_const_none_obj ,
363
+ (mp_obj_t )& mp_const_none_obj },
364
+ };
365
+
350
366
//| ipv4_subnet: Optional[ipaddress.IPv4Address]
351
- //| """IP v4 Address of the subnet when connected to an access point. None otherwise."""
367
+ //| """IP v4 Address of the station subnet when connected to an access point. None otherwise."""
352
368
//|
353
369
STATIC mp_obj_t wifi_radio_get_ipv4_subnet (mp_obj_t self ) {
354
370
return common_hal_wifi_radio_get_ipv4_subnet (self );
@@ -363,8 +379,24 @@ const mp_obj_property_t wifi_radio_ipv4_subnet_obj = {
363
379
(mp_obj_t )& mp_const_none_obj },
364
380
};
365
381
382
+ //| ipv4_subnet_ap: Optional[ipaddress.IPv4Address]
383
+ //| """IP v4 Address of the access point subnet, when enabled. None otherwise."""
384
+ //|
385
+ STATIC mp_obj_t wifi_radio_get_ipv4_subnet_ap (mp_obj_t self ) {
386
+ return common_hal_wifi_radio_get_ipv4_subnet_ap (self );
387
+
388
+ }
389
+ MP_DEFINE_CONST_FUN_OBJ_1 (wifi_radio_get_ipv4_subnet_ap_obj , wifi_radio_get_ipv4_subnet_ap );
390
+
391
+ const mp_obj_property_t wifi_radio_ipv4_subnet_ap_obj = {
392
+ .base .type = & mp_type_property ,
393
+ .proxy = { (mp_obj_t )& wifi_radio_get_ipv4_subnet_ap_obj ,
394
+ (mp_obj_t )& mp_const_none_obj ,
395
+ (mp_obj_t )& mp_const_none_obj },
396
+ };
397
+
366
398
//| ipv4_address: Optional[ipaddress.IPv4Address]
367
- //| """IP v4 Address of the radio when connected to an access point. None otherwise."""
399
+ //| """IP v4 Address of the station when connected to an access point. None otherwise."""
368
400
//|
369
401
STATIC mp_obj_t wifi_radio_get_ipv4_address (mp_obj_t self ) {
370
402
return common_hal_wifi_radio_get_ipv4_address (self );
@@ -380,7 +412,7 @@ const mp_obj_property_t wifi_radio_ipv4_address_obj = {
380
412
};
381
413
382
414
//| ipv4_address_ap: Optional[ipaddress.IPv4Address]
383
- //| """IP v4 Address of the radio access point, when enabled. None otherwise."""
415
+ //| """IP v4 Address of the access point, when enabled. None otherwise."""
384
416
//|
385
417
STATIC mp_obj_t wifi_radio_get_ipv4_address_ap (mp_obj_t self ) {
386
418
return common_hal_wifi_radio_get_ipv4_address_ap (self );
@@ -482,7 +514,9 @@ STATIC const mp_rom_map_elem_t wifi_radio_locals_dict_table[] = {
482
514
{ MP_ROM_QSTR (MP_QSTR_ap_info ), MP_ROM_PTR (& wifi_radio_ap_info_obj ) },
483
515
{ MP_ROM_QSTR (MP_QSTR_ipv4_dns ), MP_ROM_PTR (& wifi_radio_ipv4_dns_obj ) },
484
516
{ MP_ROM_QSTR (MP_QSTR_ipv4_gateway ), MP_ROM_PTR (& wifi_radio_ipv4_gateway_obj ) },
517
+ { MP_ROM_QSTR (MP_QSTR_ipv4_gateway_ap ), MP_ROM_PTR (& wifi_radio_ipv4_gateway_ap_obj ) },
485
518
{ MP_ROM_QSTR (MP_QSTR_ipv4_subnet ), MP_ROM_PTR (& wifi_radio_ipv4_subnet_obj ) },
519
+ { MP_ROM_QSTR (MP_QSTR_ipv4_subnet_ap ), MP_ROM_PTR (& wifi_radio_ipv4_subnet_ap_obj ) },
486
520
{ MP_ROM_QSTR (MP_QSTR_ipv4_address ), MP_ROM_PTR (& wifi_radio_ipv4_address_obj ) },
487
521
{ MP_ROM_QSTR (MP_QSTR_ipv4_address_ap ), MP_ROM_PTR (& wifi_radio_ipv4_address_ap_obj ) },
488
522
0 commit comments