
Lora Personalized device for Everynet
Dependencies: LMiCPersonalizedforEverynet SX1276Lib X_NUCLEO_IKS01A1 cantcoap lwip mbed-rtos mbed
Fork of LoRaWAN-test-10secs by
errors.h
00001 /* errors.h */ 00002 /* 00003 Copyright (C) 2012 ARM Limited. 00004 00005 Permission is hereby granted, free of charge, to any person obtaining a copy of 00006 this software and associated documentation files (the "Software"), to deal in 00007 the Software without restriction, including without limitation the rights to 00008 use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 00009 of the Software, and to permit persons to whom the Software is furnished to do 00010 so, subject to the following conditions: 00011 00012 The above copyright notice and this permission notice shall be included in all 00013 copies or substantial portions of the Software. 00014 00015 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 00016 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 00017 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 00018 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 00019 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 00020 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 00021 SOFTWARE. 00022 */ 00023 00024 #ifndef ERRORS_H_ 00025 #define ERRORS_H_ 00026 00027 /** \page Network-related errors */ 00028 00029 #define OK 0 //No error 00030 00031 #define NET_FULL 1 //>All available resources are already used 00032 #define NET_EMPTY 2 //>No resource 00033 #define NET_NOTFOUND 3 //>Element cannot be found 00034 #define NET_INVALID 4 //>Invalid 00035 #define NET_CONTEXT 5 //>Called in a wrong context (eg during an interrupt) 00036 #define NET_TIMEOUT 6 //>Timeout 00037 #define NET_UNKNOWN 7 //>Unknown error 00038 #define NET_OVERFLOW 8 //>Overflow 00039 #define NET_PROCESSING 9 //>Command is processing 00040 #define NET_INTERRUPTED 10 //>Current operation has been interrupted 00041 #define NET_MOREINFO 11 //>More info on this error can be retrieved elsewhere (eg in a parameter passed as ptr) 00042 #define NET_ABORT 12 //>Current operation must be aborted 00043 #define NET_DIFF 13 //>Items that should match are different 00044 #define NET_AUTH 14 //>Authentication failed 00045 #define NET_PROTOCOL 15 //>Protocol error 00046 #define NET_OOM 16 //>Out of memory 00047 #define NET_CONN 17 //>Connection error 00048 #define NET_CLOSED 18 //>Connection was closed by remote end 00049 #define NET_TOOSMALL 19 //>Buffer is too small 00050 00051 #endif /* ERRORS_H_ */
Generated on Wed Jul 13 2022 06:25:04 by
