Comments (3)
I'm afraid I can't help you with PlatformIO. I'm struggling myself to get it working. As far as I can tell, the PlatformIO builder is not capable of using third-party components.
If you want to experiment yourself, you definitely want to use the dev branch of this library.
from ttn-esp32.
I had same and some more problems to get ttn-esp32 running using platformio and esp-idf. But now its working. See working example see here: https://github.com/vrees/Esp32LoraBoard
To get it running I had to change following:
- copied dev branch of ttn-esp32 in lib subdir of my platformio project
- in main.cpp #include "driver/gpio.h" in oder to get rid of error mentioned by @marcel151
- Due to a problem wth AES encryption "undefined reference to lmic_aes_encrypt" I had to switch to software encryption by changing 2 files. This works for me just now. Does somebody know how to use hardware encryption correctly?
src/lmic/config.h
#define USE_ORIGINAL_AES
src/aes/lmic_aes.c
line 260: u4_t t0, t1=0, t2, t3;
- added shutdown method to reduce deep sleep current of Lora chip
void TheThingsNetwork::shutdown() { ttn_hal.enterCriticalSection(); LMIC_shutdown(); waitingReason = eWaitingNone; if (lmicEventQueue != nullptr) { xQueueReset(lmicEventQueue); } ttn_hal.leaveCriticalSection(); }
My system:
VSCode 1.45.1
Espressif 32 Platform displayed in 'PIO Home' 1.12.1
Linux Mint
from ttn-esp32.
I've updated the wiki Page Using PlatformIO with the latest information about using PlatformIO.
from ttn-esp32.
Related Issues (20)
- ttn_hal error HOT 6
- ADR TXPower doesn't change HOT 5
- Linker error due to missing extern "C" in void app_main() {} in file main.cpp when using platformio HOT 3
- Not possible to navigate menuconfig menu when using platformio HOT 2
- esp-idf 5.0 issue HOT 2
- LoRaWAN and Regional parameters versions
- No TTN option in component config anymore HOT 2
- Can I communicate peer to peer? HOT 2
- TTGO Lora OLED v1 // ttn_hal: LMIC failed and stopped radio.c:1067
- unwanted Downlink request HOT 2
- How to add a region CN470 band code? HOT 3
- Linkcheck HOT 7
- AU915 exceeds Time-on-air for ADR and packet confirmation HOT 3
- SX1262 compatibility HOT 1
- Helium support HOT 1
- ttn_hal: LMIC failed and stopped HOT 4
- deep_sleep not saving data HOT 13
- ttn_hal LMIC failed and stopped error on ESP32S3 with RFM95W HOT 2
- ttn_set_subband function no longer functions HOT 3
- Can this run on LoRa 32 board ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ttn-esp32.