Skip to content

Instantly share code, notes, and snippets.

@hobroker
Last active April 11, 2024 02:20
Show Gist options
  • Save hobroker/bfc261254a6581b1c1ec58df4eb56281 to your computer and use it in GitHub Desktop.
Save hobroker/bfc261254a6581b1c1ec58df4eb56281 to your computer and use it in GitHub Desktop.
SUCCESS 0 // Success
PENDING -1 // Pending
TIMEOUT -2 // Timeout
PARTIAL_RESULTS -3 // Partial results
ERROR -4 // Error
BADARG -5 // Bad Arguments
BADOPTION -6 // Mode not supported
UNSUPPORTED -7 // Unsupported function
OUT_OF_HEAP_SPACE -8 // Dynamic memory space exhausted
NOTUP -9 // Interface is not currently Up
UNFINISHED -10 // Operation not finished yet
CONNECTION_LOST -11 // Connection to server lost
NOT_FOUND -12 // Item not found
PACKET_BUFFER_CORRUPT -13 // Packet buffer corrupted
ROUTING_ERROR -14 // Routing error
BADVALUE -15 // Bad value
WOULD_BLOCK -16 // Function would block
ABORTED -17 // Operation aborted
CONNECTION_RESET -18 // Connection has been reset
CONNECTION_CLOSED -19 // Connection is closed
NOT_CONNECTED -20 // Connection is not connected
ADDRESS_IN_USE -21 // Address is in use
NETWORK_INTERFACE_ERROR -22 // Network interface error
ALREADY_CONNECTED -23 // Socket is already connected
INVALID_INTERFACE -24 // Interface specified in invalid
SOCKET_CREATE_FAIL -25 // Socket creation failed
INVALID_SOCKET -26 // Socket is invalid
CORRUPT_PACKET_BUFFER -27 // Packet buffer is corrupted
UNKNOWN_NETWORK_STACK_ERROR -28 // Unknown network stack error
NO_STORED_AP_IN_DCT -29 // DCT contains no AP credentials
STA_JOIN_FAILED -30 // Join failed
PACKET_BUFFER_OVERFLOW -31 // Packet buffer overflow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment