Hi Gilles,

> On Jan 3, 2017, at 8:53 PM, Gilles Boccon-Gibod <[email protected]> wrote:
> 
> I'm trying to put together a simple app that uses TCP/IP with MyNewt.
> I don't see any reference to how to enable/use LWIP in any of the tutorials
> or docs, but I can see that LWIP is included in the platform.
> If I add "@apache-mynewt-core/net/ip/lwip_base" to my pkg.yml, my build
> does try to build the code from net/ip/lwip_base, but it seems pretty blunt
> (it tries to compile everything from that subtree, including 'httpd' and
> other apps), so there must be a better way to configure this.
> 
> Any pointers on how to get started with the IP stack?

unfortunately not yet. I did start the process of bringing it in, but the 
process
is not yet complete. The code as it is now is more of a checkpoint towards
support.

What is missing is a) sample device driver(s) which can be included as
packages like our other drivers, b) sample app utilizing it (there is
winc1500_wifi app in arduino-zero repository, which does use sockets and
allows you to start the default inet services), I would probably make a
sample app with this and c) add locking to lwip socket adaptation and
d) documentation.

What you can do at the moment, however, is use the mn_socket abstraction
to write IP applications. This is functional when running with simulator,
and with WINC1500 wifi chip (which has offloaded TCP/IP).

Another thing which is missing is an abstraction of DNS. We need this
so you can write IP applications which work with offloaded DNS or LwIP,
depending on what is present in the build.
—
M

Reply via email to