mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 11:40:18 +01:00
extmod/network_ninaw10: Implement the ipconfig methods for ninaw10.
This implements network.ipconfig() and network.WLAN.ipconfig() when the ninaw10 driver is used for WLAN. Due to a omission in the ninaw10 driver stack, setting the DNS address has no effect. But the interface is kept here just in case it's fixed eventually. dhcp4 and has_dhcp4 are dummy arguments. Ninaw10 seems to always use DHCP. Signed-off-by: robert-hh <robert@hammelrath.com>
This commit is contained in:
@@ -83,6 +83,10 @@ extern int mp_mod_network_prefer_dns_use_ip_version;
|
||||
#endif
|
||||
#elif defined(MICROPY_PORT_NETWORK_INTERFACES)
|
||||
|
||||
#if MICROPY_PY_NETWORK_NINAW10
|
||||
mp_obj_t network_ninaw10_ipconfig(size_t n_args, const mp_obj_t *args, mp_map_t *kwargs);
|
||||
#endif
|
||||
|
||||
struct _mod_network_socket_obj_t;
|
||||
|
||||
typedef struct _mod_network_nic_protocol_t {
|
||||
|
||||
Reference in New Issue
Block a user