I am trying to use the “EthernetInterface.h” library on FRDMK66F Microcontroller for Socket communication. But the compiler is giving the following error -
Error: #error directive: The Ethernet Interface library is not supported on this target in “EthernetInterface/EthernetInterface.h”, Line: 24, Col: 3
when I look into the “EthernetInterface.h” header file, it does not include FRDMK66F,
#if !defined(TARGET_LPC1768) && !defined(TARGET_LPC4088) && !defined(TARGET_LPC4088_DM) && !defined(TARGET_K64F) && !defined(TARGET_RZ_A1H) && !defined(TARGET_VK_RZ_A1H) && !defined(TARGET_STM32F4) #error The Ethernet Interface library is not supported on this target #endif
Starting socket demo
Connecting to the network...
IP address: XXX.YYY.80.75
Netmask: 255.255.192.0
Gateway: XXX.YYY.64.1
Resolve hostname ifconfig.io
ifconfig.io address is 104.21.192.35
Opening connection to remote port 80
Sending message:
GET / HTTP/1.1
Host: ifconfig.io
Connection: close
sent 56 bytes
Complete message sent
received 100 bytes:
HTTP/1.1 200 OK
Demo concluded successfully