AWS IoT Device SDK C: Defender
AWS IoT Device Defender library
Return to main page ↑
AwsIotDefender_Stop

Stop the defender agent.

void AwsIotDefender_Stop( void );

It waits for the current metrics-publishing iteration to finish before freeing the resource allocated. It also clears the metrics set previously so that user is expected to SetMetrics again before restarting defender agent.

Warning
This function must be called after successfully calling AwsIotDefender_Start.
This function is not thread safe.