---
title: "WIZnetInterface library for mbed-os 5"
url: "https://maker.wiznet.io/forum/11939"
markdown_url: "https://maker.wiznet.io/forum/11939/md"
type: "Forum topic"
category: "Ethernet Chips"
author: "jnewcomb"
created: "2016-09-22T16:26:54+09:00"
last_activity: "2017-05-04T08:39:34+09:00"
language: "en"
views: 1156
replies: 1
source: "WIZnet Makers forum (https://maker.wiznet.io/forum/)"
---

# WIZnetInterface library for mbed-os 5

## Question

Asked by jnewcomb on 2016-09-22 in Ethernet Chips.

mbed-os as of Aug 2016 now exports to IAR tools and others. Its a good starting point.
Has anyone done any work on creating mbed-os supported library?
[developer.mbed.org/teams/WIZnet … Interface/](https://developer.mbed.org/teams/WIZnet/code/WIZnetInterface/)

If you find something, please post here. Maybe its not so difficult to do? Any few pointers would be helpful.
A library provide Ethernet to all the small micros that can’t run lwip and don’t have in built Ethernet controller to mbed-os. Seems a no brainier to me.
(this post is not referring to mbed or mbed-rtos)
Thanks…

## Replies

### Reply 1 by jnewcomb, 2017-01-04

Ideally, what really needs to be done is adding Wiznet support to the NetworkSocketAPI
[url][| Mbed](https://developer.mbed.org/teams/NetworkSocketAPI/wiki/Porting-Guide%5B/url%5D)
[url][https://developer.mbed.org/teams/NetworkSocketAPI/code/\[/url\]](https://developer.mbed.org/teams/NetworkSocketAPI/code/%5B/url%5D)

By was of an example, this has been done with the WizFi310 Interface (Client only)
[url][WizFi310Interface - This library can be used in mbed driver or mbed O… | Mbed](https://developer.mbed.org/teams/WIZnet/code/WizFi310Interface/%5B/url%5D)
or
[url][https://developer.mbed.org/users/jehoon/code/WizFi310Interface/\[/url\]](https://developer.mbed.org/users/jehoon/code/WizFi310Interface/%5B/url%5D)

AND also by way of a good example - the esp8266 Wifi module (running AI Thinker ‘AT’ Firmware. No UDP)
[url][https://github.com/ARMmbed/esp8266-driver\[/url\]](https://github.com/ARMmbed/esp8266-driver%5B/url%5D)
AND the esp8266 Wifi module (running Espressif ‘AT’ Firmware. Client support only)
[url][https://developer.mbed.org/teams/components/code/ESP8266Interface\[/url\]](https://developer.mbed.org/teams/components/code/ESP8266Interface%5B/url%5D)

It could then be supported by the ‘easy-connect’ library
[url][https://github.com/ARMmbed/easy-connect\[/url\]](https://github.com/ARMmbed/easy-connect%5B/url%5D)

Note: Existing library makes heavy use of status register polling. There is a lot of ‘while(not_ready)poll()’ statements. Its not going to work well if more than one thread is listening on a TCP port. At a minimum it needs to listen to connections without blocking. Ideally use interrupts.
…
In the meantime, I’ve continued to use the old wiznet library - as described here.
[url][http://opensrclab.tistory.com/35\[/url\]](http://opensrclab.tistory.com/35%5B/url%5D)
It uses this library:
[url][WIZnetInterface - This is Library using WIZnet Hardware TCP/IP chip… | Mbed](https://developer.mbed.org/teams/WIZnet/code/WIZnetInterface/%5B/url%5D)

---

Source: https://maker.wiznet.io/forum/11939
