Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
}
}
}
Expand Down Expand Up @@ -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
This project contains code from other projects. The original license text is included in those source files. They must comply with our license guide
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion mbed_app.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down