Browse Source

Option for BLUETOOTH_PIN

pull/9/head
Łukasz Nidecki 1 year ago
parent
commit
581a5dcd2f
  1. 3
      src/TTGO_T-Beam_LoRa_APRS.ino
  2. 1
      src/TTGO_T-Beam_LoRa_APRS_config.h

3
src/TTGO_T-Beam_LoRa_APRS.ino

@ -367,6 +367,9 @@ void setup(){
rf95.setTxPower(20); // was 5
delay(250);
#ifdef ENABLE_BLUETOOTH
#ifdef BLUETOOTH_PIN
SerialBT.setPin(BLUETOOTH_PIN);
#endif
SerialBT.begin(String("TTGO LORA APRS ") + CALLSIGN);
writedisplaytext("LoRa-APRS","","Init:","BT OK!","","",250);
#endif

1
src/TTGO_T-Beam_LoRa_APRS_config.h

@ -19,5 +19,6 @@
#define TXdbmW 20 // Transmit power in dBm 17-50mW, 18-63mW, 19-80mW, 20-100mW
//#define SHOW_GPS_DATA // uncomment to show on serial port, received data from GPS and debug information
#define ENABLE_BLUETOOTH
//#define BLUETOOTH_PIN "0000"
unsigned long max_time_to_nextTX = 180000L; // TRANSMIT INTERVAL set here MAXIMUM time in ms(!) for smart beaconing - minimum time is always 1 min = 60 secs = 60000L !!!
Loading…
Cancel
Save