mco_edge_stop

Shuts down the edge runtime.

For an overview, see the Edge Client page.

Prototype

    MCO_RET mco_edge_stop();

Description

Shuts down the edge runtime and releases global resources, analogous to mco_runtime_stop().

This function should be called once at application exit to ensure proper cleanup of internal structures, ring buffers, and network connections. It gracefully terminates background synchronization threads and flushes any pending data before releasing allocated memory. Calling it explicitly is highly recommended to prevent resource leaks, especially in long-running or multithreaded environments.

Return Codes

MCO_S_OK
Successful shutdown.

Files

Header file:
mcoedge.h
Source file:
mcoedgedb.c
Library:
libmcoiotedge.a