vasimv wrote:I've ran into same problem with Arduino IDE (ESP-12E works but stops sending ARP answers, so everyone on network loses it). To fix this, i'm calling every second function to force send gratuitous ARP announce:
extern "C" {
char *netif_list;
uint8_t etharp_request(char *, char *);
}
void forceARP() {
char *netif = netif_list;
while (netif)
{
etharp_request((netif), (netif+4));
netif = *((char **) netif);
}
}
Hi, i have the exact same issue, arp replies sometimes go missing. In my case is not deterministic. I tried this piece of code to send gratuitous arp every 10 seconds but i'm not smart enough to tweak it to work can you help?
The Arduino IDE throws this errors:
/home/user/.arduino15/packages/esp8266/hardware/esp8266/2.2.0/tools/sdk/lib/liblwip.a(netif.o):(.bss+0x0): multiple definition of `netif_list'
sketch/WeMos_NATIVE_WEB_v3.ino.ino.cpp.o:/home/user/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/xtensa-lx106-elf/include/c++/4.8.2/functional:2069: first defined here
collect2: error: ld returned 1 exit status
exit status 1
Error compiling for board WeMos D1 R2 & mini.