Skip to content

ARMmbed/mbed-os-example-socket-stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 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-enabled configuration option in mbed_app.json:

{
    "target_overrides": {
        "*": {
            "nsapi.socket-stats-enabled": 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 6:

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 configured to use the Ethernet interface on supported devices. To use the example with a different interface, please follow the socket example readme. Network interfaces are documented in Mbed OS 5 documentation

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 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

About

Example for Network socket statistics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 17