From d720e312a419a2b274e363dc0aed24bd089ad309 Mon Sep 17 00:00:00 2001 From: richonguzman Date: Thu, 16 Nov 2023 00:19:56 -0300 Subject: [PATCH] more test --- README.md | 4 ++-- src/LoRa_APRS_Tracker.cpp | 6 +++--- src/ble_utils.cpp | 9 ++++++--- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 2735890..ee35b4b 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Richonguzman / CD2RXU LoRa APRS Tracker/Station +# Richonguzman / CA2RXU LoRa APRS Tracker/Station This firmware is for using ESP32 based boards with LoRa Modules and GPS to live in the APRS world. @@ -93,4 +93,4 @@ ____________________________________________________ - https://github.com/dl9sau/TTGO-T-Beam-LoRa-APRS : Thomas - DL9SAU for the Kiss <> TNC2 lib ____________________________________________________ -# Hope You Enjoy this, 73 !! CD2RXU , Valparaiso, Chile \ No newline at end of file +# Hope You Enjoy this, 73 !! CA2RXU , Valparaiso, Chile \ No newline at end of file diff --git a/src/LoRa_APRS_Tracker.cpp b/src/LoRa_APRS_Tracker.cpp index ea45a4c..55e855a 100644 --- a/src/LoRa_APRS_Tracker.cpp +++ b/src/LoRa_APRS_Tracker.cpp @@ -34,7 +34,7 @@ TinyGPSPlus gps; BluetoothSerial SerialBT; OneButton userButton = OneButton(BUTTON_PIN, true, true); -String versionDate = "2023.11.15"; +String versionDate = "2023.11.16"; int myBeaconsIndex = 0; int myBeaconsSize = Config.beacons.size(); @@ -116,8 +116,8 @@ void setup() { if (Config.notification.ledMessage){ pinMode(Config.notification.ledMessagePin, OUTPUT); } - show_display(" LoRa APRS", "", " Richonguzman", " -- CD2RXU --", "", " " + versionDate, 4000); - logger.log(logging::LoggerLevel::LOGGER_LEVEL_INFO, "Main", "RichonGuzman (CD2RXU) --> LoRa APRS Tracker/Station"); + show_display(" LoRa APRS", "", " Richonguzman", " -- CA2RXU --", "", " " + versionDate, 4000); + logger.log(logging::LoggerLevel::LOGGER_LEVEL_INFO, "Main", "RichonGuzman (CA2RXU) --> LoRa APRS Tracker/Station"); logger.log(logging::LoggerLevel::LOGGER_LEVEL_INFO, "Main", "Version: %s", versionDate); if (Config.ptt.active) { diff --git a/src/ble_utils.cpp b/src/ble_utils.cpp index cd04d8b..ec6b18a 100644 --- a/src/ble_utils.cpp +++ b/src/ble_utils.cpp @@ -24,12 +24,14 @@ extern bool bleConnected; class MyServerCallbacks : public NimBLEServerCallbacks { void onConnect(NimBLEServer* pServer) { bleConnected = true; - logger.log(logging::LoggerLevel::LOGGER_LEVEL_INFO, "BLE", "%s", "Connected"); + logger.log(logging::LoggerLevel::LOGGER_LEVEL_INFO, "BLE", "%s", "BLE Client Connected"); + //delay(1000); } void onDisconnect(NimBLEServer* pServer) { bleConnected = false; - logger.log(logging::LoggerLevel::LOGGER_LEVEL_INFO, "BLE", "%s", "Disconnected"); + logger.log(logging::LoggerLevel::LOGGER_LEVEL_INFO, "BLE", "%s", "BLE client Disconnected, Started Advertising"); + pServer->startAdvertising(); } }; @@ -92,7 +94,7 @@ namespace BLE_Utils { ); pCharacteristicRx = pService->createCharacteristic( CHARACTERISTIC_UUID_RX, - NIMBLE_PROPERTY::WRITE + NIMBLE_PROPERTY::WRITE | NIMBLE_PROPERTY::WRITE_NR ); pCharacteristicRx->setCallbacks(new MyCallbacks()); @@ -130,6 +132,7 @@ namespace BLE_Utils { } pCharacteristicTx->setValue(receivedPacketString); pCharacteristicTx->notify(); + delay(3); } }