Added Remove node by nodenum admin message (#2941)

* Remove node by nodenum

* It were backerds! DERP
This commit is contained in:
Ben Meadors
2023-11-16 06:57:22 -06:00
committed by GitHub
parent 91e399a2b6
commit 5d917885df
8 changed files with 31 additions and 7 deletions

View File

@@ -182,6 +182,12 @@ bool AdminModule::handleReceivedProtobuf(const meshtastic_MeshPacket &mp, meshta
}
break;
}
case meshtastic_AdminMessage_remove_by_nodenum_tag: {
LOG_INFO("Client is receiving a remove_nodenum command.\n");
nodeDB.removeNodeByNum(r->remove_by_nodenum);
reboot(DEFAULT_REBOOT_SECONDS);
break;
}
#ifdef ARCH_PORTDUINO
case meshtastic_AdminMessage_exit_simulator_tag:
LOG_INFO("Exiting simulator\n");