nabto_client_connection_set_server_api_key()

DESCRIPTION

@Deprecated use nabto_client_connection_set_server_key()

Set the server api key, which is provided by nabto. Each APP needs its own server api key to be able to connect to the nabto api. The server api key is used to distinguish different apps. Since the server api key will be put into the final applications it is not secret.

DECLARATION

NABTO_CLIENT_DECL_PREFIX NabtoClientError NABTO_CLIENT_API
nabto_client_connection_set_server_api_key(NabtoClientConnection* connection,
                                           const char* serverApiKey)

PARAMETERS

connection:
[in] the connection
serverApiKey:
[in] the clientId

RETURNS

  • NABTO_CLIENT_EC_OK: on success
  • NABTO_CLIENT_EC_INVALID_STATE: if the connection is not in the setup phase