# Big ESP32 + SX127x topic part 2

**URL:** <https://www.thethingsnetwork.org/forum/t/big-esp32-sx127x-topic-part-2/11973>\
**Category:** End Devices (Nodes)\
**Created:** [January 23, 2018, 2:11pm UTC](https://www.thethingsnetwork.org/forum/t/big-esp32-sx127x-topic-part-2/11973 "2018-01-23T14:11:55Z")\
**Posts on this page:** 1\
**Showing post:** 118

<div class="post-metadata">

**Author:** ![CurlyWurly](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/curlywurly/32/38668_2.png) [@CurlyWurly](https://www.thethingsnetwork.org/forum/u/CurlyWurly)\
**Post date:** [February 6, 2018, 1:08pm UTC](https://www.thethingsnetwork.org/forum/t/big-esp32-sx127x-topic-part-2/11973/118 "2018-02-06T13:08:54Z")

</div>

> [@kalon33](#):
>
> I tried to do so, but for an unknown reason, sending the lpp data with LMIC failed in my sketch, so if you have anything for me to compare with, it would be nice 😉

[https://www.thethingsnetwork.org/docs/devices/arduino/api/cayennelpp.html](https://www.thethingsnetwork.org/docs/devices/arduino/api/cayennelpp.html)  
Have you looked at the standard " **Basic\_library\_TTN"** sketch?  
Surely, all you need is something like this?  
(Obviously, replace the values with your variables)  
_#include \<CayenneLPP.h\>_  
_CayenneLPP lpp(51);_  
_lpp.reset();_  
_lpp.addTemperature(1, 22.5);_  
_lpp.addBarometricPressure(2, 1073.21);_  
_lpp.addGPS(3, 52.37365, 4.88650, 2);_

And the LMIC version of this  
_ttn.sendBytes(lpp.getBuffer(), lpp.getSize());_

Also, don’t forget to change the payload function to “Cayenne”

N.B. I’ve put some example code for the Heltec (V1) in post 123 here

> [@Big ESP32 / SX127x topic part 1](https://www.thethingsnetwork.org/forum/t/big-esp32-sx127x-topic-part-1/10247/128):
>
> \*\* 4/12/17 - Altered to take into account what Kersing says below \*\* 7/12/17 - Altered to take into account the installation of libraries that may not already be installed and to add sister TX code \*\* 15/12/17 - Altrered to add info on how to copy the 3 codes from console 1) Single Channel Gateway using Heltec WiFi LoRa 32 (with OLED display) Thanks @Kersing Got the single channel gateway working on my Heltec WiFi LoRa 32 (with OLED display) [https://www.aliexpress.com/item/868MHz-915MHz-SX1…](https://www.aliexpress.com/item/868MHz-915MHz-SX1276-ESP32-LoRa-0-96-Inch-OLED-Display-Bluetooth-WIFI-Lora-Kit-32-Module/32835492243.html?ws_ab_test=searchweb0_0,searchweb201602_1_10152_10065_10151_10344_10068_10130_10345_10324_10342_10547_10325_10343_10340_10341_10548_10192_10541_10190_10084_10083_10307_10301_10303_10539_10312_10059_10313_10314_10184_10534_100031_10604_10603_10103_10605_10594_10596_10142_10107,searchweb201603_25,ppcSwitch_5&algo_expid=2ba45802-8bfd-4728-b9ca-e592aea6c379-19&algo_pvid=2ba45802-8bfd-4728-b9ca-e592aea6c379&rmStoreLevelAB=5)

But this would be better perhaps?  
[https://www.thethingsnetwork.org/labs/story/heltec-lorawan-gps-quick-start](https://www.thethingsnetwork.org/labs/story/heltec-lorawan-gps-quick-start)

Also, this was created about the Heltec

> **[My Chinese ESP32 + SX1276 board + DHT11 connected to The Things Network – #1...](https://ictoblog.nl/2018/01/13/my-chinese-esp32-sx1276-board-dht11-connected-to-the-things-network-1#comment-100420)**

---

_[View the full topic](https://www.thethingsnetwork.org/forum/t/big-esp32-sx127x-topic-part-2/11973)._
