# Lora Thing Plus Explorable Error with modified code

**URL:** <https://community.sparkfun.com/t/lora-thing-plus-explorable-error-with-modified-code/43526>\
**Category:** LoRa (Long Range)\
**Created:** [February 20, 2022, 8:04am UTC](https://community.sparkfun.com/t/lora-thing-plus-explorable-error-with-modified-code/43526 "2022-02-20T08:04:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![trentonp](https://avatars.discourse-cdn.com/v4/letter/t/258eb7/32.png) [@trentonp](https://community.sparkfun.com/u/trentonp)\
**Post date:** [February 20, 2022, 8:04am UTC](https://community.sparkfun.com/t/lora-thing-plus-explorable-error-with-modified-code/43526/1 "2022-02-20T08:04:18Z")

</div>

I am trying to communicate between the LoRa Thing Plus Explorable and the ESP32 1 Channel Gateway. The ESP32 seems to be working and online, however I have having issues with the Explorable…

I installed the RadioLib library from the Sparkfun website and also downloaded the peer to peer example code (which is different than the RadioLib example transmit code). When I compile the revised code, I get the following error:

Transmit-revised:40:16: error: ‘ERR\_NONE’ was not declared in this scope… I believe this is because the library actually defines it as “RADIOLIB\_ERR\_NONE”. So I am not sure what the modified code is accomplishing if the terms are not compatible with the library it uses.

So I just tried using unmodified RadioLib example from the library (and adding SPI1 pin to the SX1262 module) it actually compiles and loads, however in the serial monitor I see:

[SX1262] Initializing … failed, code -2

So nothing seems to work.

Is there a way to find out what code -2 is? Is this just an issue with the Explorable not communicating with the ESP32 LoRa or am I doing something wrong with the Explorable code?
