summaryrefslogtreecommitdiff
path: root/extmod/modnetwork.h
diff options
context:
space:
mode:
authorrobert-hh <robert@hammelrath.com>2024-03-28 08:03:41 +0100
committerDamien George <damien@micropython.org>2024-06-04 12:45:01 +1000
commit7e7cc2b427f588559d50bae35d49c305201c2365 (patch)
tree9a7f64e98faa322768995e69c0888b12aa2891dd /extmod/modnetwork.h
parent1f23ab1e3dabbbe1812f60dfeb5301d887954ac9 (diff)
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>
Diffstat (limited to 'extmod/modnetwork.h')
-rw-r--r--extmod/modnetwork.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/extmod/modnetwork.h b/extmod/modnetwork.h
index 2ff9ce09d..1a4aa7797 100644
--- a/extmod/modnetwork.h
+++ b/extmod/modnetwork.h
@@ -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 {