diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2020-08-10 17:56:49 -0700 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2020-08-19 14:22:13 -0700 |
| commit | 3860991111511a9e4a60ea24f208b8de8f801ce7 (patch) | |
| tree | 224b8820b24be8f521ec3e6ac6a83af5d40a9365 /shared-module | |
| parent | c53a72d3f5ed1f556637ebc3eca2ad27e8eb9fff (diff) | |
Ping work and start to add socketpool
Diffstat (limited to 'shared-module')
| -rw-r--r-- | shared-module/ipaddress/__init__.c | 5 | ||||
| -rw-r--r-- | shared-module/ipaddress/__init__.h | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/shared-module/ipaddress/__init__.c b/shared-module/ipaddress/__init__.c index e5d857d5d..031f317aa 100644 --- a/shared-module/ipaddress/__init__.c +++ b/shared-module/ipaddress/__init__.c @@ -33,3 +33,8 @@ mp_obj_t common_hal_ipaddress_new_ipv4address(mp_int_t value) { common_hal_ipaddress_ipv4address_construct(self, (uint8_t*) &value, 4); return self; } + + +void ipaddress_ipaddress_to_esp_idf(mp_obj_t ip_address, ip_addr_t* esp_ip_address) { + // FIX THIS TOMORROW! +} diff --git a/shared-module/ipaddress/__init__.h b/shared-module/ipaddress/__init__.h index 7d5f2c220..9f1e00777 100644 --- a/shared-module/ipaddress/__init__.h +++ b/shared-module/ipaddress/__init__.h @@ -31,6 +31,10 @@ #include "py/obj.h" +#include "lwip/api.h" + mp_obj_t common_hal_ipaddress_new_ipv4(uint32_t value); +void ipaddress_ipaddress_to_esp_idf(mp_obj_t ip_address, ip_addr_t* esp_ip_address); + #endif // MICROPY_INCLUDED_SHARED_MODULE_IPADDRESS___INIT___H |
