mbed-os/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/dev_stats.md

906 B

Device statistics

dev_stat_internal_init

To start collecting device statistics within the device statistics structure:

int8_t dev_stat_internal_init
(
	dev_stat_t	*info_ptr
)
Parameter Description
info_ptr A pointer to the device statistics structure on application.
Return value
0 Success.
-1 Fail.

dev_stat_get_longest_heap_sector

The following function call returns the longest available free sector size in the 6LoWPAN stack dynamic memory:

int16_t dev_stat_get_longest_heap_sector
(
	void
)
Return value
The size of the longest free sector.

dev_stat_get_runtime_seconds

The following function call returns the runtime since last reset:

uint32_t dev_stat_get_runtime_seconds
(
	void
)
Return value
The runtime since last reset.