more test

This commit is contained in:
richonguzman 2023-11-16 00:19:56 -03:00
parent ae1360547d
commit d720e312a4
3 changed files with 11 additions and 8 deletions

View File

@ -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
# Hope You Enjoy this, 73 !! CA2RXU , Valparaiso, Chile

View File

@ -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) {

View File

@ -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);
}
}