Skip to main content

odin_room_update_peer_user_data

Updates the custom user data for your own peer. All user data is synced automatically, which allows storing of arbitrary information for each individual peer.

Declaration
OdinReturnCode odin_room_update_peer_user_data(OdinRoomHandle room,
const uint8_t *user_data,
size_t user_data_length);

Parameters

room

Handle of the room where the user data will be updated. See

OdinRoomHandle

for more information.

Declaration
OdinRoomHandle room;

user_data

Byte array containing the user data to be set.

Declaration
const uint8_t *user_data;

user_data_length

Length of the user data array.

Declaration
size_t user_data_length;

Returns

A return code indicating success or failure. See

OdinReturnCode

for more information.

Return Type
OdinReturnCode