• The wiznet implementation is probably the cleanest one to look at. Basically just 4 files:

    • jswrap_X.c/h the implementation of connect/getIP/etc
    • network_X.c/h the implementation of the socket API that's used

    If yours can fit in the same kind of style it opens a lot of possibilities - for instance it would be relatively easy to modify the existing code such that multiple network adaptors could coexist. You could have GSM and ESP8266, and could be using both at the same time.

    Just to add, we also have GSM, so:

    And they all use the same form of instantiation and have the API functions named the same where possible. It would be a big help to everyone if this one worked the same way as well.

About

Avatar for Gordon @Gordon started