# SparkFun The Thing Plus ExpLoRaBLE (WRL-17506), anyone have a TTN OTAA sketch that works

**URL:** <https://community.sparkfun.com/t/sparkfun-the-thing-plus-explorable-wrl-17506-anyone-have-a-ttn-otaa-sketch-that-works/46964>\
**Category:** Development Tools\
**Created:** [February 14, 2024, 4:38pm UTC](https://community.sparkfun.com/t/sparkfun-the-thing-plus-explorable-wrl-17506-anyone-have-a-ttn-otaa-sketch-that-works/46964 "2024-02-14T16:38:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Craig59715](https://avatars.discourse-cdn.com/v4/letter/c/8491ac/32.png) [@Craig59715](https://community.sparkfun.com/u/Craig59715)\
**Post date:** [February 14, 2024, 4:38pm UTC](https://community.sparkfun.com/t/sparkfun-the-thing-plus-explorable-wrl-17506-anyone-have-a-ttn-otaa-sketch-that-works/46964/1 "2024-02-14T16:38:53Z")

</div>

I have a slightly modified the example OTAA sketch based on the BASICMAC example that established an OTAA connection after many many attempts, and only occasionally can successfully transmit a packet.

The provided example sketch needs a number of variable changes to support the SX1262 chip instead of the SX1272, including the pin mapping. Finally got a sketch that would, after many retransmissions, get a join-accept response from TTN. However, the sketch did not seem to behave in the expected manner by proceeding the transmit the data payload, instead it continued to re-xmit the request to join.

I am not new to TTN, I host my own gateway and have a SAMD-21 Pro RF LoRaWAN boards that works perfectly. But The Thing Plus ExpLoRaBLE has been a nightmare for me.

Does anyone have a basic TTN OTAA sketch that consistently and reliably works for them when using this board? Would you share, I am losing too many of my gray hairs already. Thanks in advance.
