mirror of
https://github.com/markqvist/RNode_Firmware.git
synced 2026-04-27 22:35:36 +00:00
Fix LXMF beacon: remove beacon_crypto_configured gate, add diagnostics
The LXMF beacon path was gated on both lxmf_identity_configured AND beacon_crypto_configured. The latter is only set when legacy collector keys are provisioned via EEPROM — unrelated to LXMF. Removing the gate allows the LXMF announce + telemetry path to work standalone. Verified: watch LXMF announce received by Sideband as "RNode GPS Tracker" via T-Beam Supreme LoRa gateway. Also adds lxmf_id and bcn_crypto fields to metrics output.
This commit is contained in:
parent
c6e2a282ab
commit
0cf5faa01f
2 changed files with 6 additions and 3 deletions
2
Beacon.h
2
Beacon.h
|
|
@ -124,7 +124,7 @@ void beacon_update() {
|
|||
beacon_gate = 6;
|
||||
|
||||
// LXMF path: send proper LXMF message with FIELD_TELEMETRY directly to Sideband
|
||||
if (lxmf_identity_configured && beacon_crypto_configured) {
|
||||
if (lxmf_identity_configured) {
|
||||
// Periodic LXMF announce (every 10 minutes)
|
||||
lxmf_announce_if_needed("RNode GPS Tracker");
|
||||
|
||||
|
|
|
|||
7
Gui.h
7
Gui.h
|
|
@ -922,12 +922,15 @@ static void gui_cmd_execute() {
|
|||
"{\"build\":\"%s %s\",\"loop\":%lu,\"radio\":%lu,"
|
||||
"\"serial\":%lu,\"disp\":%lu,\"pmu\":%lu,"
|
||||
"\"gps\":%lu,\"bt\":%lu,\"imu\":%lu,"
|
||||
"\"bcn_gate\":%d,\"hw_ready\":%d}\n",
|
||||
"\"bcn_gate\":%d,\"hw_ready\":%d,"
|
||||
"\"lxmf_id\":%d,\"bcn_crypto\":%d}\n",
|
||||
__DATE__, __TIME__,
|
||||
gui_loop_us_last, prof_radio_us, prof_serial_us,
|
||||
prof_display_us, prof_pmu_us, prof_gps_us,
|
||||
prof_bt_us, prof_imu_us,
|
||||
beacon_gate, hw_ready ? 1 : 0);
|
||||
beacon_gate, hw_ready ? 1 : 0,
|
||||
lxmf_identity_configured ? 1 : 0,
|
||||
beacon_crypto_configured ? 1 : 0);
|
||||
gui_loop_us_max = 0;
|
||||
Serial.write((uint8_t *)buf, strlen(buf));
|
||||
Serial.flush();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue