LoRaLib
Arduino library for LoRa modules based on LoRa chips by Semtech (SX1272, SX1276, SX1278) and HopeRF (RFM95, RFM96, RFM98)
Status Codes

Macros

#define ERR_NONE   0
 No error, method executed successfully.
 
#define ERR_UNKNOWN   -1
 There was an unexpected, unknown error. If you see this, something went incredibly wrong. Your Arduino may be possessed, contact your local exorcist to resolve this error.
 
#define ERR_CHIP_NOT_FOUND   -2
 SX127x chip was not found during initialization. This can be caused by specifying wrong chip type in the constructor (i.e. calling SX1272 constructor for SX1278 chip) or by a fault in your wiring (incorrect slave select pin).
 
#define ERR_MEMORY_ALLOCATION_FAILED   -3
 Failed to allocate memory for temporary buffer. This can be cause by not enough RAM or by passing invalid pointer.
 
#define ERR_PACKET_TOO_LONG   -4
 Packet supplied to transmission method was longer than 255 bytes. SX127x chips can not send more than 255 bytes in a single LoRa transmission. Length limit is reduced to 63 bytes for FSK transmissions.
 
#define ERR_TX_TIMEOUT   -5
 Timed out waiting for TxDone signal from SX127x. This error can be caused by faulty wiring (unreliable connection at DIO0).
 
#define ERR_RX_TIMEOUT   -6
 No packet arrived within a timeframe.
 
#define ERR_CRC_MISMATCH   -7
 The calculated and expected CRCs of received packet do not match. This means that the packet was damaged during transmission and should be sent again.
 
#define ERR_INVALID_BANDWIDTH   -8
 The supplied bandwidth value is invalid for this module.
 
#define ERR_INVALID_SPREADING_FACTOR   -9
 The supplied spreading factor value is invalid for this module.
 
#define ERR_INVALID_CODING_RATE   -10
 The supplied coding rate value is invalid.
 
#define ERR_INVALID_BIT_RANGE   -11
 Internal only.
 
#define ERR_INVALID_FREQUENCY   -12
 The supplied frequency value is invalid for this module.
 
#define ERR_INVALID_OUTPUT_POWER   -13
 The supplied output power is invalid.
 
#define PREAMBLE_DETECTED   -14
 LoRa preamble was detected during channel activity detection. This means that there is some LoRa device currently transmitting in your channel.
 
#define CHANNEL_FREE   -15
 No LoRa preambles were detected during channel activity detection. Your channel is free.
 
#define ERR_SPI_WRITE_FAILED   -16
 Real value in SPI register does not match the expected one. This can be caused by faulty SPI wiring.
 
#define ERR_INVALID_CURRENT_LIMIT   -17
 The supplied current limit value is invalid.
 
#define ERR_INVALID_PREAMBLE_LENGTH   -18
 The supplied preamble length is invalid.
 
#define ERR_INVALID_GAIN   -19
 The supplied gain value is invalid.
 
#define ERR_WRONG_MODEM   -20
 User tried to execute modem-exclusive method on a wrong modem. For example, this can happen when you try to change LoRa configuration when FSK modem is active.
 
#define ERR_INVALID_BIT_RATE   -21
 The supplied bit rate value is invalid.
 
#define ERR_INVALID_RX_BANDWIDTH   -22
 The supplied receiver bandwidth value is invalid.
 
#define ERR_INVALID_FREQUENCY_DEVIATION   -23
 The supplied frequency deviation value is invalid.
 
#define ERR_INVALID_SYNC_WORD   -24
 The supplied FSK sync word is invalid. The sync word is either longer than 8 bytes or contains null-bytes.
 
#define ERR_INVALID_DATA_SHAPING   -25
 The supplied FSK data shaping option is invalid.
 
#define ERR_INVALID_MODULATION   -26
 The current modulation is invalid for the requested operation.
 
#define ERR_INVALID_NUM_SAMPLES   -27
 The supplied number of RSSI samples is invalid.
 
#define ERR_INVALID_RSSI_OFFSET   -28
 The supplied RSSI offset is invalid.
 
#define ERR_INVALID_ENCODING   -29
 The supplied encoding is invalid.
 

Detailed Description