nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches

◆ config_channel_transport_get_disabled()

int config_channel_transport_get_disabled ( uint8_t * buffer,
size_t length )

#include <applications/nrf_desktop/src/util/config_channel_transport.h>

Handle a get operation and inform that the transport is disabled.

Fills the buffer with response informing that the transport is disabled and cannot be used to configure device. If a given transport is disabled, set operation should be ignored and get operation should use this function to prepare response for host.

The disabled transport returns disconnected status.

Parameters
bufferPointer to the buffer to be filled.
lengthLength of the data to be filled.
Returns
0 if the operation was successful. Otherwise, a (negative) error code is returned.