# Registering an ABP device via the API

**URL:** <https://www.thethingsnetwork.org/forum/t/registering-an-abp-device-via-the-api/59028>\
**Category:** The Things Stack v3\
**Created:** [September 26, 2022, 10:02am UTC](https://www.thethingsnetwork.org/forum/t/registering-an-abp-device-via-the-api/59028 "2022-09-26T10:02:44Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![proffalken](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/proffalken/32/46240_2.png) [@proffalken](https://www.thethingsnetwork.org/forum/u/proffalken)\
**Post date:** [September 26, 2022, 10:47am UTC](https://www.thethingsnetwork.org/forum/t/registering-an-abp-device-via-the-api/59028/3 "2022-09-26T10:47:44Z")

</div>

> [@Jeff-UK](#):
>
> So we know where you come from and got to 🙂

Yeah, good shout… 😃

The device is a Heltec WiFi LoRa 32 v2 with an MFRC522 RFID reader attached to it (hence the challenges around hardware - the support for MFRC522 in ESPIDF is shocking, but the support for TTN v3 in the Arduino Framework using SPI isn’t great either as I’ve been finding out! ☹ )

The code has been taken from [this post](https://www.thethingsnetwork.org/forum/t/register-device-the-things-stack-v3-api/51816/3) and amended slightly, but only to move it into a dedicated python function as opposed to a straightforward script.

I’m starting to think it’s something to do with the `version_ids` in the JSON, so I’m going to play around with that this evening and hopefully I can find out what’s causing this!

---

_[View the full topic](https://www.thethingsnetwork.org/forum/t/registering-an-abp-device-via-the-api/59028)._
