chirpsdk / io.chirp.chirpsdk.models / ChirpErrorCode

ChirpErrorCode

enum class ChirpErrorCode

A list of available Chip error codes

Parameters

code - Int code that represents the error code.

Enum Values

CHIRP_SDK_OK

No error.

CHIRP_SDK_OUT_OF_MEMORY

The SDK ran out of memory.

CHIRP_SDK_NOT_INITIALISED

The SDK hasn't been initialised, did you forget to set the config?

CHIRP_SDK_INTERNAL_ERROR

An internal error prevented the SDK from initialising correctly.

CHIRP_SDK_MEMORY_LEAK

Some memory hasn't been freed leading to some leaks.

CHIRP_SDK_RECEIVING_NOT_AVAILABLE

Receiving mode has been disabled and is not available.

CHIRP_SDK_NOT_RUNNING

The SDK is not running.

CHIRP_SDK_ALREADY_RUNNING

The SDK is already running.

CHIRP_SDK_ALREADY_STOPPED

The SDK has already stopped.

CHIRP_SDK_ALREADY_SENDING

The SDK is already sending.

CHIRP_SDK_INVALID_SAMPLE_RATE

The sample rate is invalid (it must respect Nyquist law).

CHIRP_SDK_NULL_BUFFER

One of the parameters is a NULL buffer.

CHIRP_SDK_NULL_POINTER

One of the parameters is a NULL pointer.

CHIRP_SDK_CHANNEL_NOT_SUPPORTED

The channel asked is bigger than the maximum one authorised by the config being used.

CHIRP_SDK_INVALID_FREQUENCY_CORRECTION

Invalid frequency correction value.

CHIRP_SDK_INVALID_KEY

Invalid application key.

CHIRP_SDK_INVALID_SECRET

Invalid application secret.

CHIRP_SDK_INVALID_CREDENTIALS

Invalid application credentials.

CHIRP_SDK_MISSING_SIGNATURE

Signature is missing from the config.

CHIRP_SDK_INVALID_SIGNATURE

Signature couldn't be verified.

CHIRP_SDK_MISSING_CONFIG

Config information is missing.

CHIRP_SDK_INVALID_CONFIG

Config information is invalid.

CHIRP_SDK_EXPIRED_CONFIG

This config has expired.

CHIRP_SDK_INVALID_VERSION

This config was generated for a different version. Please visit https://developers.chirp.io to upgrade your SDK.

CHIRP_SDK_INVALID_PROJECT

This config was generated for a different project.

CHIRP_SDK_INVALID_CONFIG_CHARACTER

Your config contains one or many unknown character(s).

CHIRP_SDK_PAYLOAD_EMPTY_MESSAGE

The payload is empty.

CHIRP_SDK_PAYLOAD_INVALID_MESSAGE

The payload is invalid.

CHIRP_SDK_PAYLOAD_UNKNOWN_SYMBOLS

The payload contains unknown symbols.

CHIRP_SDK_PAYLOAD_DECODE_FAILED

Couldn't decode the payload.

CHIRP_SDK_PAYLOAD_TOO_LONG

The payload's length is longer than the maximum one authorised by the config being used.

CHIRP_SDK_PAYLOAD_TOO_SHORT

The payload's length is shorter than the minimum one authorised by the config being used..

CHIRP_SDK_INVALID_VOLUME

Volume value is incorrect.

CHIRP_SDK_UNKNOWN_ERROR

The SDK has reported an unknown error.

CHIRP_SDK_NETWORK_ERROR

Network error.

CHIRP_SDK_NETWORK_NO_NETWORK

Couldn't reach the server, please check your network connection.

CHIRP_SDK_NETWORK_PERMISSIONS_NOT_GRANTED

Network permissions were not granted by the application or user. Please add network permissions to your application, or contact sales@chirp.io to request completely offline operation.

CHIRP_SDK_ACCOUNT_DISABLED

Your account has been disabled due to an unpaid license. Please contact sales@chirp.io.

CHIRP_SDK_AUDIO_IO_ERROR

Audio IO error.

CHIRP_SDK_SENDING_NOT_ENABLED

Send mode hasn't been enabled.

CHIRP_SDK_RECEIVING_NOT_ENABLED

Receive mode hasn't been enabled.

CHIRP_SDK_DEVICE_IS_MUTED

The device is muted. Cannot send data.

Properties

code

val code: Int

Int code that represents the error code.