The defacto LoRaWAN library for ESP32 is LMIC. Even the latest version of MCCI LMIC (v4.1) does not support class C.
If you use a Heltec ESP32 board you may try Heltec’s proprietary (partially closed source) ESP32 LoRaWAN library which is a port of Semtech’s LoRaMAC-node.
Maybe that also supports Class C. Usage of the library is restricted to Heltec ESP32 boards however (and very little experience with it here on the forum).
That’s why I suggested checking other discussions about this exact question sort of question. If it doesn’t get the uplink, how long before the next uplink is up to you.
But before you get too invested in all of this, I’d put a known good device at the location to check what the signal quality is - go to site, turn on device, look at console on smartphone - can the gateway hear it OK and did the device pickup the Join Accept within a reasonable number of attempts.
The board you linked is a Heltec Wifi LoRa 32 (V2).
According to the images it is a V2 board (did not notice V2 in the text while briefly scanning).
Pretty expensive there, better have a look at Heltec Automation store on AliExpress.
In case you want to use a Heltec board because of their (advertised) Class C support:
If you explicitly need the WiFi/BT support (or processing power) of the ESP32 the best choice is probably:
Heltec Wifi LoRa 32 V2 (get the V2 not the older V1), or
Heltec Wireless Stick (has smaller, lower res display but possibly better WiFi antenna).
If battery operation is required (not for class C of course) then:
Heltec Wireless Stick Lite, or
Heltec Wireless Shell
If you don’t need WiFi/BT then the following may be a more interesting/better choice:
One of the Heltec CubeCell boards.
The CubeCell product range is based on ASR650x SiP (which integrates ARM Cortex M0+ with SX1262), has Arduino support and its LoRaWAN support is based on Semtech’s LoRaMAC-node.
Some nice CubeCell dev boards are:
Heltect CubeCell Dev-Board Plus (HTCC-AB02)
Heltec CubeCell GPS-6502 (HTCC-AB02S) similar to above but with onboard GPS
Heltec CubeCell Dev-Board (HTCC-AB01) this board is the smallest, has fewer IO ports and no SPI available though (based on ASR6501 while above AB02x boards are ASR6502 based).
Be aware that both Heltec’s ESP32 LoRaWAN library and their CubeCell product range support LoRaWAN Class A and Class C only (support for class B is not specified).
FYI: Of the above boards I have personal experience with the Wifi Lora 32 (V2) and CubeCell Dev-Board only and no experience with Heltec’s ESP32 LoRaWAN library or Class C.
Hello @Johan_Scheepers
I have made a project as you need with an ESP32 heltec and an activation of a LATCH relay
I’m still testing but it works fine
I have it integrated with Node-red and with Thinger.io
Hi @electroarbi-lora, i’ve read your post. I’m trying to configure an ESP32 V3 in class-c so that it can receive downlinks instantly, but i’m not able to find a library to do this. Can you help me?
Thank you in advance!