Axeda demo software for u-blox C027 (GSM)

Dependencies:   mbed

Committer:
AxedaCorp
Date:
Mon Aug 11 19:02:42 2014 +0000
Revision:
0:a725e8eab383
1st commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AxedaCorp 0:a725e8eab383 1
AxedaCorp 0:a725e8eab383 2 #ifndef _AXSTATUSCODES_H_
AxedaCorp 0:a725e8eab383 3 #define _AXSTATUSCODES_H_
AxedaCorp 0:a725e8eab383 4
AxedaCorp 0:a725e8eab383 5 #define AX_ERROR -1 //A General Error has occurred
AxedaCorp 0:a725e8eab383 6 #define AX_OK 0 //Operation Success
AxedaCorp 0:a725e8eab383 7 #define AX_UNKNOWN -42 //An unknown error has occurred. Functions are normally initialized to return this value. The function should change it before returning it.
AxedaCorp 0:a725e8eab383 8 #define AX_ARGNULL -999 //An argument passed to the function was left null
AxedaCorp 0:a725e8eab383 9 #define AX_OUT_OF_RANGE -998 //An argument passed to the function was out of range
AxedaCorp 0:a725e8eab383 10 #define AX_DI_UNKNOWN_TYPE -997 //An argument passed to the function indicating the Data Item type was incorrect
AxedaCorp 0:a725e8eab383 11 #define AX_CONFLICTING_ARG -996 //Two arguments passed to a function describing the same object have conflicting values e.g. arg1(string)=="fubar"; arg2(strlength)==0, The string fubar is obviously longer than 0
AxedaCorp 0:a725e8eab383 12 #define AX_ARG_EMPTY -995 //An argument passed to the function was a string but it was empty eg mystring="". This will be thrown when a value is required.
AxedaCorp 0:a725e8eab383 13
AxedaCorp 0:a725e8eab383 14 #define AX_NET_ERR_UNABLE_TO_CONNECT 700 //Call to open the TCP port to IP or hostname has failed. Is the port open? IP contactable?
AxedaCorp 0:a725e8eab383 15 #define AX_NET_ERR_PORT_WRITE 701 //The program was unable to write data onto the socket.
AxedaCorp 0:a725e8eab383 16 #define AX_NET_ERR_HEADER_WRITE 702 //a write error occurred while writing the HTTP headers
AxedaCorp 0:a725e8eab383 17 #define AX_NET_ERR_DATA_WRITE 703 //a write error occurred while writing the HTTP data/body
AxedaCorp 0:a725e8eab383 18 #define AX_NET_ERR_TIMEOUT 704 //A timeout occurred while waiting for a response.
AxedaCorp 0:a725e8eab383 19 #define AX_NET_PORT_INVALID 705 //The port that was specified is larger than 65536 or less than 0
AxedaCorp 0:a725e8eab383 20 #define AX_NET_DNS_ERROR 706 //There was an error resolving the name of the platform server
AxedaCorp 0:a725e8eab383 21 #define AX_NET_MORE_WAITING 707 //Thrown when the data written to the port does not equal the amount of data that was requested to be written.
AxedaCorp 0:a725e8eab383 22
AxedaCorp 0:a725e8eab383 23 #define AX_GEN_STR_TRUNC 604 //the string to be stored was too long and has been truncated, This is a warning only.
AxedaCorp 0:a725e8eab383 24 #define AX_EGR_JSON_PARSE_FAIL 800 //The egress message that was returned did not have the necessary fields
AxedaCorp 0:a725e8eab383 25 #define AX_GEN_PARSE_ERR 603 //A general parsing failure has occured. Invalid JSON will cause this error.
AxedaCorp 0:a725e8eab383 26
AxedaCorp 0:a725e8eab383 27
AxedaCorp 0:a725e8eab383 28 //The following codes are used for an optional Queueing implementation example.
AxedaCorp 0:a725e8eab383 29 #define AX_GEN_QUEUE_FULL 600 //The queue is full and cannot accept more items. Item was not added. Enable overwrite or empty the queue
AxedaCorp 0:a725e8eab383 30 #define AX_GEN_QUEUE_ITEM_EXISTS 601 //The item you tried to enqueue already exists in the queue.
AxedaCorp 0:a725e8eab383 31 #define AX_GEN_QUEUE_EMPTY 602 //The queue is empty, thrown on a dequeue operation
AxedaCorp 0:a725e8eab383 32
AxedaCorp 0:a725e8eab383 33
AxedaCorp 0:a725e8eab383 34
AxedaCorp 0:a725e8eab383 35
AxedaCorp 0:a725e8eab383 36 #endif
AxedaCorp 0:a725e8eab383 37