Skip to content

FabTangi/PouezGwenan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple example for ESP32

This is a simple exemple for ESP32 with arduino framework.

Details here : https://wiki.fablab-lannion.org/index.php?title=T-Weigh

Based on code from :

https://github.com/Xinyuan-LilyGO/T-Weigh

https://github.com/ngraziano/LMICPP-Arduino

Specific to ESP32

It use hardware AES for encoding.

Usage

Work with platformio.

Open with platformio (VSCODE with Platformio extension)

In src directory create a file named lorakeys.h wich contain the keys declared in network (for exemple https://www.thethingsnetwork.org)

Exemple of file:

// Application in string format.
// For TTN issued EUIs the first bytes should be 70B3D5
constexpr char const appEui[] = "70B3D5XXXXXXXXXX";

// Device EUI in string format.
constexpr char const devEui[] = "XXXXXXXXXXXXXXXX";
// Application key in string format.
constexpr char const appKey[] = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";

In main.cpp replace the content of do_send() with the data you want to send.

Check the pin configuration for your board in lmic_pins structure.

Hardware used is https://github.com/Xinyuan-LilyGO/T-Weigh

About

Evit pouezan ruskennoù has kas dre LoRa

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages