Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
7 years, 8 months ago.
WIZnetInterface as NetworkStack
I have a cape board based on W5500 that provides network interface to Nucleo-L476RG board (That's STM based board without Ethernet on it).
I am able to open a TCP socket and read a response using WIZnetInterface provided classes: https://developer.mbed.org/teams/WIZnet/code/WIZnetInterface/
I am planning on using mbed library to its full potential and thus I expect that some communication libraries use mbed Socket and not WIZnetInterface version of Socket. I pocked around it appears that a proper way to connect to mbed network layer is through implementation of NetworkStack: https://docs.mbed.com/docs/mbed-os-api/en/mbed-os-5.1.0/api/classNetworkStack.html
Is there an existing NetworkStack implementation for W5500 or WIZnetInterface? or do I have to attempt to create stack myself?
Is there a good example that does something similar?
1 Answer
7 years, 8 months ago.
Hey Segei,
Please have a look at the ESP8266 WiFi driver as an example of an mbed OS 5.5 compatible driver - https://github.com/armmbed/esp8266-driver.
There is also an informal porting guide for new NetworkInterfaces - https://github.com/sarahmarshy/nsapi-porting-guide.
Cheers, Sarah
I have found a good example, forked and fixed it.
https://developer.mbed.org/users/sgnezdov/code/W5500Interface/
posted by 10 Jul 2017
The solution is this library that I have forked and fixed https://developer.mbed.org/users/sgnezdov/code/W5500Interface/
posted by Sergei G 10 Jul 2017