IOTC Platform  Ver: 4.3.6.2-0-ge1f616e
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
NebulaError.h File Reference
#include "TUTKJsonAPIs.h"

Macros

#define NEBULA_ER_NoERROR   0
 
#define NEBULA_ER_NOT_INITIALIZE   -40000
 
#define NEBULA_ER_TIMEOUT   -40001
 
#define NEBULA_ER_INVALID_ARG   -40002
 
#define NEBULA_ER_INVALID_UDID   -40003
 
#define NEBULA_ER_HTTP_ERROR   -40004
 
#define NEBULA_ER_FAIL_CREATE_THREAD   -40005
 
#define NEBULA_ER_MEM_INSUFFICIENT   -40006
 
#define NEBULA_ER_BRIDGE_SERVER_LOGIN_FAIL   -40007
 
#define NEBULA_ER_RESOURCE_ERROR   -40008
 
#define NEBULA_ER_BIND_SERVER_LOGIN_FAIL   -40009
 
#define NEBULA_ER_TOKEN_BUF_SIZE_INSUFFICIENT   -40010
 
#define NEBULA_ER_RENT_UID_FAILED   -40011
 
#define NEBULA_ER_INVALID_TOKEN   -40012
 
#define NEBULA_ER_TOKEN_EXPIRED   -40013
 
#define NEBULA_ER_UNKNOWN_COMMAND   -40014
 
#define NEBULA_ER_HTTP_TIMEOUT   -40015
 
#define NEBULA_ER_BRIDGE_SERVER_NOT_LOGIN   -40016
 
#define NEBULA_ER_CLIENT_NOT_BIND_TO_DEVICE   -40017
 
#define NEBULA_ER_UNKNOW_STATUS   -40018
 
#define NEBULA_ER_DEVICE_ONLINE   -40019
 
#define NEBULA_ER_DEVICE_OFFLINE   -40020
 
#define NEBULA_ER_DEVICE_SLEEPING   -40021
 
#define NEBULA_ER_DEVICE_AWAKENING   -40022
 
#define NEBULA_ER_INVALID_PIN_CODE   -40024
 
#define NEBULA_ER_INVALID_REALM   -40025
 
#define NEBULA_ER_NO_NOTIFICATION_LIST   -40026
 
#define NEBULA_ER_LOGIN_ALREADY_CALLED   -40027
 
#define NEBULA_ER_CONNECT_REFUSED   -40028
 
#define NEBULA_ER_DEVICE_FORCE_STOP   -40029
 
#define NEBULA_ER_CLIENT_FORCE_STOP   -40030
 
#define NEBULA_ER_INVALID_PSK   -40031
 
#define NEBULA_ER_ALREADY_INITIALIZED   -40032
 
#define NEBULA_ER_INVALID_SECRETID   -40033
 
#define NEBULA_ER_DUPLICATE   -40034
 
#define NEBULA_ER_NO_SUCH_ENTRY   -40035
 
#define NEBULA_ER_FORCE_STOP   -40036
 
#define NEBULA_ER_INVALID_NODE   -40037
 
#define NEBULA_ER_SYNTAX_ERROR   -40038
 
#define NEBULA_ER_IOTC_LOGIN_ERROR   -40039
 
#define NEBULA_ER_RETRY   -40040
 
#define NEBULA_ER_NOT_SUPPORT   -40041
 
#define NEBULA_ER_CURL_ERROR   -40042
 
#define NEBULA_ER_SERVICE_UNAVAILABLE   -40043
 
#define NEBULA_ER_DEVICE_NOT_READY   -40044
 
#define NEBULA_ER_UDID_EXPIRED   -40045
 
#define NEBULA_ER_BIG_SIZE_NOT_SUPPORTED   -40046
 
#define NEBULA_ER_CLIENT_NOT_LOGIN_BEFORE   -40047
 
#define NEBULA_ER_EXCEED_BUFFER_SIZE   -41001
 
#define NEBULA_ER_UNKNOW_MESSAGE   -41002
 
#define NEBULA_ER_MESSAGE_CHECK_FAIL   -41003
 
#define NEBULA_ER_BLE_DEVICE_NOT_READY   -41007
 
#define NEBULA_ER_BLE_CALLBACK_IS_NULL   -41008
 
#define NEBULA_ER_BLE_UNKNOW_UUID   -41009
 
#define NEBULA_ER_BLE_SERVICE_NOT_STOP   -41010
 
#define NEBULA_ER_BLE_UNKNOW_STATUS   -41011
 
#define NEBULA_ER_IRIS_MISSING_PARAM   -41012
 
#define NEBULA_ER_IRIS_INVALID_PARAM   -41013
 
#define NEBULA_ER_IRIS_VERIFICATION_FAILED   -41014
 
#define NEBULA_ER_IRIS_SESSION_EXPIRED   -41015
 
#define NEBULA_ER_SOCKET_CREATE_FAIL   -42001
 
#define NEBULA_ER_SOCKET_ERROR   -42002
 
#define NEBULA_ER_TCP_CONNECTION_NOT_CREATE   -42003
 
#define NEBULA_ER_TCP_ALREADY_CONNECTED   -42004
 
#define NEBULA_ER_JSON_OBJ_TYPE_ERROR   TUTK_JSON_ER_OBJ_TYPE_ERROR
 
#define NEBULA_ER_JSON_OBJ_ADD_ERROR   TUTK_JSON_ER_OBJ_ADD_ERROR
 
#define NEBULA_ER_JSON_OBJ_NOT_EXIST   TUTK_JSON_ER_OBJ_NOT_EXIST
 
#define NEBULA_ER_JSON_OBJ_ARRAY_ERROR   TUTK_JSON_ER_OBJ_ARRAY_ERROR
 

Macro Definition Documentation

#define NEBULA_ER_ALREADY_INITIALIZED   -40032

Nebula module is already initialized. It is not necessary to re-initialize

#define NEBULA_ER_BIG_SIZE_NOT_SUPPORTED   -40046

Big sized messaged and/or compression not supported

#define NEBULA_ER_BIND_SERVER_LOGIN_FAIL   -40009

Failed to login to binding server

#define NEBULA_ER_BLE_CALLBACK_IS_NULL   -41008

Nebula Deivce callback function is NULL

#define NEBULA_ER_BLE_DEVICE_NOT_READY   -41007

Nebula Deivce not start

#define NEBULA_ER_BLE_SERVICE_NOT_STOP   -41010

BLE service is still woring

#define NEBULA_ER_BLE_UNKNOW_STATUS   -41011

Unknow status

#define NEBULA_ER_BLE_UNKNOW_UUID   -41009

Unknow UUID

#define NEBULA_ER_BRIDGE_SERVER_LOGIN_FAIL   -40007

Failed to login to bridge server

#define NEBULA_ER_BRIDGE_SERVER_NOT_LOGIN   -40016

Device not login to bridge server

#define NEBULA_ER_CLIENT_FORCE_STOP   -40030

The client blocking API is terminated by the given abort flag

#define NEBULA_ER_CLIENT_NOT_BIND_TO_DEVICE   -40017

Client not bind to device

#define NEBULA_ER_CLIENT_NOT_LOGIN_BEFORE   -40047

Client not logged-in before

#define NEBULA_ER_CONNECT_REFUSED   -40028

Connection refused because of the device is not login to server

#define NEBULA_ER_CURL_ERROR   -40042

An error occurred during the curl connection

#define NEBULA_ER_DEVICE_AWAKENING   -40022

Try to awake the device

#define NEBULA_ER_DEVICE_FORCE_STOP   -40029

The device blocking API is terminated by the given abort flag

#define NEBULA_ER_DEVICE_NOT_READY   -40044

Device not ready

#define NEBULA_ER_DEVICE_OFFLINE   -40020

Device is offline

#define NEBULA_ER_DEVICE_ONLINE   -40019

Device is online

#define NEBULA_ER_DEVICE_SLEEPING   -40021

Device is in sleep mode

#define NEBULA_ER_DUPLICATE   -40034

Duplicate value

#define NEBULA_ER_EXCEED_BUFFER_SIZE   -41001

Buffer size too small

#define NEBULA_ER_FAIL_CREATE_THREAD   -40005

Failed to create threads. Please check if OS has ability to create threads

#define NEBULA_ER_FORCE_STOP   -40036

The blocking API is terminated by the given abort flag

#define NEBULA_ER_HTTP_ERROR   -40004

An error occurred during the http connection

#define NEBULA_ER_HTTP_TIMEOUT   -40015

The http connection timeout

#define NEBULA_ER_INVALID_ARG   -40002

The passed-in arguments for the function are incorrect

#define NEBULA_ER_INVALID_NODE   -40037

UDID of the node is invalid

#define NEBULA_ER_INVALID_PIN_CODE   -40024

Client send command function already in progress The passed-in pin code is invalid

#define NEBULA_ER_INVALID_PSK   -40031

The passed-in psk is invalid

#define NEBULA_ER_INVALID_REALM   -40025

The passed-in realm is invalid

#define NEBULA_ER_INVALID_SECRETID   -40033

The passed-in SECRETID is invalid

#define NEBULA_ER_INVALID_TOKEN   -40012

The token for device to rent UID is invalid

#define NEBULA_ER_INVALID_UDID   -40003

The passed-in UDID for the function is incorrect

#define NEBULA_ER_IOTC_LOGIN_ERROR   -40039

Device failed to IOTC login

#define NEBULA_ER_IRIS_INVALID_PARAM   -41013

Server return error: Invalid parameters

#define NEBULA_ER_IRIS_MISSING_PARAM   -41012

Server return error: Missing parameters

#define NEBULA_ER_IRIS_SESSION_EXPIRED   -41015

Server return error: Session is expired

#define NEBULA_ER_IRIS_VERIFICATION_FAILED   -41014

Server return error: Third party verification failed

#define NEBULA_ER_JSON_OBJ_ADD_ERROR   TUTK_JSON_ER_OBJ_ADD_ERROR
#define NEBULA_ER_JSON_OBJ_ARRAY_ERROR   TUTK_JSON_ER_OBJ_ARRAY_ERROR
#define NEBULA_ER_JSON_OBJ_NOT_EXIST   TUTK_JSON_ER_OBJ_NOT_EXIST
#define NEBULA_ER_JSON_OBJ_TYPE_ERROR   TUTK_JSON_ER_OBJ_TYPE_ERROR
#define NEBULA_ER_LOGIN_ALREADY_CALLED   -40027

Device login already in progress

#define NEBULA_ER_MEM_INSUFFICIENT   -40006

Insufficient memory for allocation

#define NEBULA_ER_MESSAGE_CHECK_FAIL   -41003

Message type and length not match

#define NEBULA_ER_NO_NOTIFICATION_LIST   -40026

No notification settings

#define NEBULA_ER_NO_SUCH_ENTRY   -40035

No such entry

#define NEBULA_ER_NoERROR   0

The function is performed successfully.

#define NEBULA_ER_NOT_INITIALIZE   -40000

Nebula module has not been initialized

#define NEBULA_ER_NOT_SUPPORT   -40041

Not support

#define NEBULA_ER_RENT_UID_FAILED   -40011

Device can not get rental UID

#define NEBULA_ER_RESOURCE_ERROR   -40008

Nebula module has some resource allocating problem.

#define NEBULA_ER_RETRY   -40040

Try again

#define NEBULA_ER_SERVICE_UNAVAILABLE   -40043

Nebula Server not in service

#define NEBULA_ER_SOCKET_CREATE_FAIL   -42001

An error occurred while creating socket

#define NEBULA_ER_SOCKET_ERROR   -42002

An error occurred while creating socket

#define NEBULA_ER_SYNTAX_ERROR   -40038

Syntax error

#define NEBULA_ER_TCP_ALREADY_CONNECTED   -42004

There already a TCP connection created

#define NEBULA_ER_TCP_CONNECTION_NOT_CREATE   -42003

TCP connection not created yet

#define NEBULA_ER_TIMEOUT   -40001

The specified timeout has expired during some operation

#define NEBULA_ER_TOKEN_BUF_SIZE_INSUFFICIENT   -40010

The passed-in buffer size is insufficient for the device token

#define NEBULA_ER_TOKEN_EXPIRED   -40013

The validity period of token for device to rent UID is expired

#define NEBULA_ER_UDID_EXPIRED   -40045

UDID expired

#define NEBULA_ER_UNKNOW_MESSAGE   -41002

Unknow message

#define NEBULA_ER_UNKNOW_STATUS   -40018

Unknow status

#define NEBULA_ER_UNKNOWN_COMMAND   -40014

The passed-in command is not defined