diff --git a/README.md b/README.md index 79e3906..2809ea3 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ # Getting started with network socket statistics on Mbed OS -This example demonstrates how you can collect statistics from network sockets. You can enable statistics with the `nsapi.socket-stats-enable` configuration option: +This example demonstrates how you can collect statistics from network sockets. You can enable statistics with the `nsapi.socket-stats-enabled` configuration option: ``` { "target_overrides": { "*": { - "nsapi.socket-stats-enable": true + "nsapi.socket-stats-enabled": true } } } @@ -37,4 +37,4 @@ Network interfaces are documented in [Mbed OS 5 documentation](https://os.mbed.c ### License and contributions The software is provided under Apache-2.0 license. Contributions to this project are accepted under the same license. Please see [Contributing instructions](CONTRIBUTING.md) for more information. -This project contains code from other projects. The original license text is included in those source files. They must comply with our license guide \ No newline at end of file +This project contains code from other projects. The original license text is included in those source files. They must comply with our license guide diff --git a/main.cpp b/main.cpp index 44deba7..7f2f8e9 100644 --- a/main.cpp +++ b/main.cpp @@ -16,7 +16,7 @@ */ #include "mbed.h" -#if !defined(MBED_CONF_NSAPI_SOCKET_STATS_ENABLE) +#if !defined(MBED_CONF_NSAPI_SOCKET_STATS_ENABLED) #error [NOT_SUPPORTED] Socket Statistics not supported #endif diff --git a/mbed_app.json b/mbed_app.json index a97371d..5550c0f 100644 --- a/mbed_app.json +++ b/mbed_app.json @@ -1,7 +1,7 @@ { "target_overrides": { "*": { - "nsapi.socket-stats-enable": true, + "nsapi.socket-stats-enabled": true, "nsapi.socket-stats-max-count": 10, "platform.stdio-convert-newlines": true, "target.network-default-interface-type": "ETHERNET"