Embedded Wireless Framework
Typedefs | Enumerations

EWF result codes and type definitions. More...

Typedefs

typedef enum _ewf_result ewf_result
 Success and error result codes specific to the EWF API.
 

Enumerations

enum  _ewf_result {
  EWF_RESULT_OK = 0 , EWF_RESULT_UNHANDLED_URC = 1 , EWF_RESULT_NO_DATA_AVAILABLE = 2 , EWF_RESULT_INVALID_FUNCTION_ARGUMENT = -1 ,
  EWF_RESULT_OUT_OF_MEMORY = -2 , EWF_RESULT_NOT_SUPPORTED = -3 , EWF_RESULT_TIMEOUT = -4 , EWF_RESULT_IRRECOVERABLE_ERROR = -5 ,
  EWF_RESULT_UNEXPECTED_RESPONSE = -50 , EWF_RESULT_EMPTY_QUEUE = -80 , EWF_RESULT_FULL_QUEUE = -81 , EWF_RESULT_CONNECTION_FAILED = -101 ,
  EWF_RESULT_RECEPTION_FAILED = -102 , EWF_RESULT_NO_DATA_RECEIVED = -103 , EWF_RESULT_TOO_MANY_OPEN_SOCKETS = -201 , EWF_RESULT_INVALID_SOCKET = -202 ,
  EWF_RESULT_SOCKET_NOT_OPEN = -203 , EWF_RESULT_INTERFACE_INITIALIZATION_FAILED = -301 , EWF_RESULT_INTERFACE_SEND_FAILED = -302 , EWF_RESULT_INTERFACE_RECEIVE_FAILED = -303 ,
  EWF_RESULT_ADAPTER_INITIALIZATION_FAILED = -401 , EWF_RESULT_ADAPTER_RESPONDED_ERROR = -402 , EWF_RESULT_ADAPTER_RECEIVE_FAILED = -403 , EWF_RESULT_ADAPTER_TRANSMIT_FAILED = -404 ,
  EWF_RESULT_ALLOCATOR_INITIALIZATION_FAILED = -501 , EWF_RESULT_ADAPTER_NETWORK_NOT_REGISTERED = -601 , EWF_RESULT_ADAPTER_MQTT_CONNECTION_FAILED = -701 , EWF_RESULT_ADAPTER_MQTT_DISCONNECTED = -702 ,
  EWF_RESULT_ADAPTER_MQTT_PUBLISH_FAILED = -703 , EWF_RESULT_ADAPTER_MQTT_SUBSCRIBE_FAILED = -704 , EWF_RESULT_ADAPTER_MQTT_MESSAGE_GET_FAILED = -705
}
 Success and error result codes specific to the EWF API. More...
 

Detailed Description

EWF result codes and type definitions.

Enumeration Type Documentation

◆ _ewf_result

Success and error result codes specific to the EWF API.

Enumerator
EWF_RESULT_OK 

The function completed successfully

EWF_RESULT_UNHANDLED_URC 

The URC has not been handled.

EWF_RESULT_NO_DATA_AVAILABLE 

There is not data available.

EWF_RESULT_INVALID_FUNCTION_ARGUMENT 

An invalid value has been passed to the function.

EWF_RESULT_OUT_OF_MEMORY 

The system ran out of memory.

EWF_RESULT_NOT_SUPPORTED 

Unsupported functionality .

EWF_RESULT_TIMEOUT 

Timeout

EWF_RESULT_IRRECOVERABLE_ERROR 

Irrecoverable error

EWF_RESULT_UNEXPECTED_RESPONSE 

Unexpected adapter response.

EWF_RESULT_EMPTY_QUEUE 

The queue is empty.

EWF_RESULT_FULL_QUEUE 

The queue is full.

EWF_RESULT_CONNECTION_FAILED 

Failed to connect.

EWF_RESULT_RECEPTION_FAILED 

The reception failed.

EWF_RESULT_NO_DATA_RECEIVED 

No data has been received.

EWF_RESULT_TOO_MANY_OPEN_SOCKETS 

Too many open sockets, the adpater limit has been reached.

EWF_RESULT_INVALID_SOCKET 

Invalid socket value.

EWF_RESULT_SOCKET_NOT_OPEN 

The socket is not open.

EWF_RESULT_INTERFACE_INITIALIZATION_FAILED 

The interface initialization failed.

EWF_RESULT_INTERFACE_SEND_FAILED 

The interface failed to send.

EWF_RESULT_INTERFACE_RECEIVE_FAILED 

The interface failed to receive.

EWF_RESULT_ADAPTER_INITIALIZATION_FAILED 

The adapter initialization failed.

EWF_RESULT_ADAPTER_RESPONDED_ERROR 

The adapter responded with an error message.

EWF_RESULT_ADAPTER_RECEIVE_FAILED 

An adapter receive operation failed.

EWF_RESULT_ADAPTER_TRANSMIT_FAILED 

An adapter transmit operation failed.

EWF_RESULT_ALLOCATOR_INITIALIZATION_FAILED 

The allocator initialization failed.

EWF_RESULT_ADAPTER_NETWORK_NOT_REGISTERED 

The adapter not registered to network

EWF_RESULT_ADAPTER_MQTT_CONNECTION_FAILED 

The adapter failed to establish MQTT connection

EWF_RESULT_ADAPTER_MQTT_DISCONNECTED 

The MQTT link was disconnected

EWF_RESULT_ADAPTER_MQTT_PUBLISH_FAILED 

The adapter failed to publish MQTT message

EWF_RESULT_ADAPTER_MQTT_SUBSCRIBE_FAILED 

The adapter failed to subscribe MQTT topic

EWF_RESULT_ADAPTER_MQTT_MESSAGE_GET_FAILED 

The adapter failed to get MQTT message