FreeRTOS: Platform
Platform portability layer
Return to main page ↑
IotMetrics_Init

One-time initialization function for the platform metrics component.

bool IotMetrics_Init( void );

This function initializes the platform metrics component. It must be called once (and only once) before calling any other metrics or Device Defender function. Calling this function more than once without first calling IotMetrics_Cleanup may result in a crash.

Returns
true is initialization succeeded; false otherwise.
Warning
No thread-safety guarantees are provided for this function.
IotMetrics_Init
bool IotMetrics_Init(void)
One-time initialization function for the platform metrics component.