Wiznet ioLibrary_Driver problem

Hi,

Wondering if anyone has any ideas, I am trying to use : GitHub - Wiznet/ioLibrary_Driver: ioLibrary_Driver can be used for the application design of WIZnet TCP/IP chips as W5500, W5300, W5200, W5100 W5100S. in a project but when I add it into platformio.ini
with

lib_deps = https://github.com/Wiznet/ioLibrary_Driver

and try to compile a test program :

#include <Arduino.h>
#include <socket.h>

void setup() {

uint8_t sn = SOCK_STREAM;
uint8_t protocol;
uint16_t port = 80;
uint8_t flag;

int8_t mysock = socket( sn,
protocol,
port,
flag);

} // setup

void loop() {
} // loop

I get errors :
.piolibdeps/ioLibrary_Driver/Ethernet/W5500/w5500.h:52:26: fatal error: wizchip_conf.h:
No such file or directory

So then, I’ve tried creating sub subdirectories under lib for “socket” and “wizchip_conf”
and copying the files from within ioLibrary_Driver/Ethernet into them but then get link error :

/tmp/ccqV4NwF.ltrans0.ltrans.o: In function main': ccqV4NwF.ltrans0.o:(.text.startup+0x90): undefined reference to socket(unsigned char,
unsigned char, unsigned int, unsigned char)’
collect2: error: ld returned 1 exit status

Does socket have to be compiled into an object file and linked (how?)
or is there something else I’m doing wrong or perhaps I could also if the wiznet ioLibrary_Driver can be added to the official PlatformIO list?

Many Thanks.
:slight_smile:

Found a comment here: platformio-examples/readme.txt at 2998735ea5870291766161fae7c9ecc611a33d66 · platformio/platformio-examples · GitHub

Renamed main.cpp to main.c, now compiles !