ARMmbed / sal

mbed C abstract socket API layer
Other
3 stars 16 forks source link

Add a yotta config dependency for nanostack #28

Closed bremoran closed 9 years ago

bremoran commented 9 years ago

This is a backwards-compatible change for selectively importing nanostack. Nanostack can be imported into SAL by specifying the following config in either target.json or the application's config.json:

"mbed-os" : {
  "net" : {
    "stacks" : {
      "nanostack" : true
    }
  }
}

If nanostack has additional configuration, it can be specified in a dictionary instead of "true." This allows users to select nanostack or lwip as needed, at application level without specifying dependencies on either.

bremoran commented 9 years ago

cc @artokin @SeppoTakalo @bogdanm @autopulated

autopulated commented 9 years ago

:thumbsup:

bogdanm commented 9 years ago

+1