nabto_client_connection_get_remote_channel_error_code()

DESCRIPTION

Get error code for the remote channel

DECLARATION

NABTO_CLIENT_DECL_PREFIX NabtoClientError NABTO_CLIENT_API
nabto_client_connection_get_remote_channel_error_code(NabtoClientConnection* connection)

PARAMETERS

connection:
[in] The connection on which the remote channel is opened for which the error should be retrieved.

RETURNS

  • NABTO_CLIENT_EC_OK: if a remote relay channel was made.
  • NABTO_CLIENT_EC_NONE: if remote relay was not enabled.
  • NABTO_CLIENT_EC_NOT_ATTACHED: if the device is not attached to the basestation
  • NABTO_CLIENT_EC_TIMEOUT: if a timeout occured when connecting to the basestation.
  • NABTO_CLIENT_EC_OPERATION_IN_PROGRESS: if the opening of the channel is still in progress
  • NABTO_CLIENT_EC_FORBIDDEN: if the basestation request is rejected.
  • NABTO_CLIENT_EC_INVALID_STATE: if required options is missing for the remote connection.
  • NABTO_CLIENT_EC_TOKEN_REJECTED: if the basestation rejects access to a device based on either a valid formatted JWT token or a valid formatted SCT token.
  • NABTO_CLIENT_EC_DNS: if dns could not be resolved.
  • NABTO_CLIENT_EC_UNKNOWN_SERVER_KEY: if the server key is not known by the basestation.
  • NABTO_CLIENT_EC_UNKNOWN_PRODUCT_ID: if the product id is not known by the basestation.
  • NABTO_CLIENT_EC_UNKNOWN_DEVICE_ID: if the device id is not known by the basestation.
  • NABTO_CLIENT_EC_CONNECTION_REFUSED: if the client could not connect to the basestation.