mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-03-11 16:03:58 +01:00
update for SPIFFS OTA
This commit is contained in:
parent
888971147e
commit
ee2dc4f831
|
|
@ -14,7 +14,7 @@ platform = espressif32 @ 6.2.0
|
|||
board = ttgo-lora32-v21
|
||||
framework = arduino
|
||||
monitor_speed = 115200
|
||||
lib_deps =
|
||||
lib_deps =
|
||||
bblanchon/ArduinoJson@^6.20.2
|
||||
sandeepmistry/LoRa@^0.8.0
|
||||
adafruit/Adafruit GFX Library @ 1.11.5
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
#include <ArduinoJson.h>
|
||||
#include <SPIFFS.h>
|
||||
#include "configuration.h"
|
||||
#include "display.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,7 @@
|
|||
#ifndef CONFIGURATION_H_
|
||||
#define CONFIGURATION_H_
|
||||
|
||||
#include <ArduinoJson.h>
|
||||
#include <Arduino.h>
|
||||
#include <SPIFFS.h>
|
||||
#include <vector>
|
||||
#include <FS.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,11 @@ void processPacket(String packet) {
|
|||
lastScreenOn = millis();
|
||||
} else if (stationMode ==4){
|
||||
utils::typeOfPacket(packet);
|
||||
loraPacket = packet.substring(3,packet.indexOf(",")+1) + Config.callsign + "*" + packet.substring(packet.indexOf(","));
|
||||
if (packet.indexOf("WIDE1-1") == -1) {
|
||||
loraPacket = packet.substring(3,packet.indexOf(":")) + "," + Config.callsign + "*" + packet.indexOf(":");
|
||||
} else {
|
||||
loraPacket = packet.substring(3,packet.indexOf(",")+1) + Config.callsign + "*" + packet.substring(packet.indexOf(","));
|
||||
}
|
||||
delay(500);
|
||||
if (stationMode == 4) {
|
||||
LoRa_Utils::changeFreqTx();
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
#include <ESPAsyncWebServer.h>
|
||||
#include <AsyncElegantOTA.h>
|
||||
#include <AsyncTCP.h>
|
||||
#include <SPIFFS.h>
|
||||
#include <WiFi.h>
|
||||
#include "configuration.h"
|
||||
#include "pins_config.h"
|
||||
|
|
|
|||
Loading…
Reference in a new issue