Skip to content

ESP32 Crashes With TheThingsNetwork.h #265

@kevin192291

Description

@kevin192291

The Device Info sketch configured like so seems to be causing the ESP32 to go into infinite loop.
Has anyone attempted to get this working? Any word on why this happens?
I am using the ESP32's hardware serial port #2. I have attempted to get this working with the
library RN2xx3.h, it will work to a point.
What pin is TheThingsNetwork.h pointed at? or is it even configured? I checked the code and can't
seem to find where this is configured, there is a hardReset function, but that takes a pin as input.

#include <TheThingsNetwork.h>

#define loraSerial Serial2
#define debugSerial Serial
#define freqPlan TTN_FP_US915

TheThingsNetwork ttn(loraSerial, debugSerial, freqPlan);

void setup()
{
  loraSerial.begin(57600);
  debugSerial.begin(115200);
}

void loop()
{
  debugSerial.println("Device Information");
  debugSerial.println();
  ttn.showStatus();
  debugSerial.println();
  debugSerial.println("Use the EUI to register the device for OTAA");
  debugSerial.println("-------------------------------------------");
  debugSerial.println();

  delay(10000);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions