Connection.getRemoteChannelErrorCode()

DESCRIPTION

Get underlying error code on remote channel.

Possible remote channel error code are:

  • NOT_ATTACHED if the target remote device is not attached to the basestation
  • TIMEOUT if a timeout occured when connecting to the basestation.
  • FORBIDDEN if the basestation request is rejected
  • TOKEN_REJECTED if the basestation rejected based on an invalid SCT or JWT
  • DNS if the server URL failed to resolve
  • UNKNOWN_SERVER_KEY if the provided server key was not known by the basestation
  • UNKNOWN_PRODUCT_ID if the provided product ID was not known by the basestation
  • UNKNOWN_DEVICE_ID if the provided device ID was not known by the basestation
  • NONE if remote relay was not enabled

DECLARATION

    public ErrorCode getRemoteChannelErrorCode()

RETURNS

the remote channel error code