nabto_device_ice_servers_request_send()
DESCRIPTION
Request ICE Servers from the Basestation.
The request takes an identifier
which, combined with the product ID and device ID, will be used to generate the username for TURN servers. This can be used to differentiate credentials created for the device or for the client.
DECLARATION
NABTO_DEVICE_DECL_PREFIX NabtoDeviceError NABTO_DEVICE_API nabto_device_ice_servers_request_send(const char* identifier, NabtoDeviceIceServersRequest* request, NabtoDeviceFuture* future)
PARAMETERS
identifier:
- [in] Identifier used in the username. Only characters [a-zA-Z0-9-_] are allowed.
request:
- [in] Request to send
future:
- [in] Future to resolve when the result is ready.
RETURNS
NABTO_DEVICE_EC_OK
: iff the request was sent.NABTO_DEVICE_EC_INVALID_ARGUMENT
: if the identifier was invalid.NABTO_DEVICE_EC_NOT_ATTACHED
: if the device is not attached.