Skip to content

artokin/mbed-os-example-socket-stats

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

{
    "target_overrides": {
        "*": {
            "nsapi.socket-stats-enable": true
        }
    }
}

Building

Invoke mbed compile, and specify the name of your platform and your favorite toolchain (GCC_ARM, ARM, IAR). For example, for the Arm Compiler 5:

mbed compile -t <toolchain> -m <target>

Example: mbed compile -m K64F -t ARM

Documentation

You can find more information on the network socket API in the Mbed OS 5 documentation.

You can also find more information on the socket statistic API in the Mbed OS 5 documentation.

Note

The current example is limited to the ethernet interface on supported devices. To use the example with a different interface, please follow the socket example readme.

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.md for more info.

This project contains code from other projects. The original license text is included in those source files. They must comply with our license guide

About

Example for Network socket statistics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 100.0%