nabto_device_create_server_connect_token()
DESCRIPTION
Generate a sufficiently strong random server connect token.
The token is NOT added to the system. The resulting token needs to be freed with nabto_device_string_free().
DECLARATION
NABTO_DEVICE_DECL_PREFIX NabtoDeviceError NABTO_DEVICE_API
nabto_device_create_server_connect_token(NabtoDevice* device, char** serverConnectToken)
PARAMETERS
device:
- [in] The device instance
serverConnectToken:
- [out] Where to put to Server Connect Token (SCT)
RETURNS
NABTO_DEVICE_EC_OK
: iff the token is created and a reference is put into serverConnectTokenNABTO_DEVICE_EC_OUT_OF_MEMORY
: if the serverConnectToken could not be allocated