Changes needed to compile again with new idf

This commit is contained in:
2022-03-17 14:45:33 +01:00
parent b26772e4f0
commit 97c4c9005d
2 changed files with 0 additions and 21 deletions

View File

@@ -145,25 +145,6 @@ tl::expected<UdpPacketWrapper, std::string> makeUdpPacketWrapper(pbufUniquePtr &
}
} // namespace
tcpip_adapter_if_t UdpPacketWrapper::tcpIpAdapter() const
{
for (int i = 0; i < TCPIP_ADAPTER_IF_MAX; i++)
{
tcpip_adapter_if_t tcpip_if = tcpip_adapter_if_t(i);
struct netif *nif{};
if (const auto result = tcpip_adapter_get_netif(tcpip_if, (void**)&nif); result != ESP_OK)
{
ESP_LOGW(TAG, "tcpip_adapter_get_netif() failed with %s", esp_err_to_name(result));
continue;
}
if (nif && nif == _ntif)
return tcpip_if;
}
return TCPIP_ADAPTER_IF_MAX;
}
bool AsyncUdpListener::listen(const ip_addr_t *addr, uint16_t port)
{
if (!_udp_queue.constructed())

View File

@@ -34,8 +34,6 @@ struct UdpPacketWrapper
auto data() const { return _data; }
tcpip_adapter_if_t tcpIpAdapter() const;
struct netif *ntif() const { return _ntif; }
bool isBroadcast() const { return ip_addr_isbroadcast(&(_local.addr), _ntif); }