![]() |
Edge AI Add-on API 2.2.0
|
| int proto_start_session | ( | const struct proto_session_config * | cfg | ) |
#include <samples/data_forwarder/src/protocol/protocol.h>
Start a new streaming session.
Copies cfg, assigns a random session ID, and begins sending session-info messages.
| cfg | Session configuration. |
| 0 | Success. |
| -EINVAL | cfg is NULL or any field is invalid. |
| -ENOMEM | cfg->channels exceeds CONFIG_DATA_FWD_PROTO_MAX_CHANNELS. |