Closed larswd closed 1 year ago
Platformio.ini file:
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env:nucleo_wl55jc]
platform = ststm32
board = nucleo_wl55jc
framework = arduino
monitor_speed = 115200
extra_scripts = post:extra_script.py
lib_deps =
stevemarple/MicroNMEA@^2.0.6
stm32duino/STM32duinoLoRaWAN@^0.1.1
And main.cpp:
#include <Arduino.h>
#include "HardwareSerial.h"
#include "MicroNMEA.h"
#include "RadioLib.h"
#include <core_debug.h>
/* Write to Serial*/
HardwareSerial mySerial {PB7, PB6};
unsigned long last_millis {0};
bool state {true};
static constexpr unsigned long blink_duration {1000};
void setup(void)
{
mySerial.begin(115200);
delay(100);
pinMode(PB5, OUTPUT);
mySerial.println(F("Booted!"));
last_millis = millis();
}
void loop(void)
{
if (millis() - last_millis > blink_duration){
state = !state;
digitalWrite(PB5, state);
last_millis += blink_duration;
mySerial.print(F("Loop B)"));
mySerial.println(millis());
}
while (mySerial.available() > 0){
mySerial.print(mySerial.read());
}
}
This library requires core version 2.5.0. PIO isnot updated.
Hello! I am trying to use this module to operate the LoRa device in the board "Wio E5 Mini" from Seeed studio. When including this library, however, I get several error messages relating to undeclared functions, variables and datatypes. This made me think I perhaps forgot to install some dependency, but I can't seem to figure out which dependency this would be or if the problem lies somewhere else.
The error messages I get are listed below, and I will post my code (platformio.ini and main.cpp) in an answer to this issue.