Networking¶
Network callback for debugging.
Types¶
-
typedef void (*
FpCeptonNetworkReceiveCallback
)(CeptonSensorHandle handle, int64_t timestamp, const uint8_t *buffer, size_t buffer_size, void *user_data)¶ Callback for receiving network packets.
Returns error if callback already set.
- Parameters
handle
: Sensor handle.timestamp
: Packet Unix timestamp [microseconds].buffer
: Packet bytes.buffer_size
: Buffer size.user_data
: User instance pointer.
Methods¶
-
CeptonSensorErrorCode
cepton_sdk_listen_network_packet
(FpCeptonNetworkReceiveCallback cb, void *const user_data)¶ Sets network packets callback.
For internal use.
Returns error if callback already registered.
- Parameters
cb
: Callback.user_data
: User instance pointer.
-
CeptonSensorErrorCode
cepton_sdk_unlisten_network_packet
(void)¶ Clears network packet callback.