Code Monkey home page Code Monkey logo

Comments (3)

manuelbl avatar manuelbl commented on June 5, 2024

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.

vrees avatar vrees commented on June 5, 2024

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.

manuelbl avatar manuelbl commented on June 5, 2024

I've updated the wiki Page Using PlatformIO with the latest information about using PlatformIO.

from ttn-esp32.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.