Cannot convert 'ip4

您所在的位置:网站首页 电脑怎么把软件打包成安装包 Cannot convert 'ip4

Cannot convert 'ip4

#Cannot convert 'ip4| 来源: 网络整理| 查看: 265

I have two machines both with IDE 2.04 and M5STACK board files installed. I have this code:

String resolve_mdns_host(const char * host_name) { // Serial.printf("Query A: %s.local ", host_name); ip4_addr_t addr; addr.addr = 0; esp_err_t err = mdns_query_a(host_name, 2000, &addr);

From the same file. One machine is a Mac and the other a Windows 10 Machine. The Mac compiles with this error cannot convert 'ip4_addr_t*' {aka 'ip4_addr*'} to 'esp_ip4_addr_t*' {aka 'esp_ip4_addr*'} The Windows machine compiles fine. I had changed the declaration "ip4_addr_t addr;" from "esp_ip4_addr_t" because this code which had been working for months started to complain that esp_ip4_addr_t was not defined in this scope. Both M5STACK board definitions are Version 2.06-1.0.

What is wrong here?

Thanks Kurt



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3