MCPcopy Create free account
hub / github.com/blinker-iot/blinker-library / errorToString

Method errorToString

src/modules/ESPAsyncTCP/ESPAsyncTCP.cpp:751–788  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

749}
750
751const char * AsyncClient::errorToString(int8_t error) {
752 switch (error) {
753 case ERR_OK:
754 return "OK";
755 case ERR_MEM:
756 return "Out of memory error";
757 case ERR_BUF:
758 return "Buffer error";
759 case ERR_TIMEOUT:
760 return "Timeout";
761 case ERR_RTE:
762 return "Routing problem";
763 case ERR_INPROGRESS:
764 return "Operation in progress";
765 case ERR_VAL:
766 return "Illegal value";
767 case ERR_WOULDBLOCK:
768 return "Operation would block";
769 case ERR_ABRT:
770 return "Connection aborted";
771 case ERR_RST:
772 return "Connection reset";
773 case ERR_CLSD:
774 return "Connection closed";
775 case ERR_CONN:
776 return "Not connected";
777 case ERR_ARG:
778 return "Illegal argument";
779 case ERR_USE:
780 return "Address in use";
781 case ERR_IF:
782 return "Low-level netif error";
783 case ERR_ISCONN:
784 return "Connection already established";
785 default:
786 return "Unknown error";
787 }
788}
789
790const char * AsyncClient::stateToString(){
791 switch(state()){

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected