Add CmdBWMWifi function for WiFi BWM logging

Signed-off-by: Niel Nielsen <nieldk@gmail.com>
This commit is contained in:
Niel Nielsen
2026-08-27 13:17:31 +02:00
committed by GitHub
parent 775bbae4d3
commit 57ea719363
+8
View File
@@ -1550,6 +1550,14 @@ static int CmdBwmAutoOff(const char *Cmd) {
return PM3_SUCCESS;
}
static int CmdBWMWifi(const char *Cmd) {
PrintAndLogEx(SUCCESS, "BWM on WiFi at %u.%u.%u.%u",
ip & 0xFF, (ip>>8)&0xFF, (ip>>16)&0xFF, (ip>>24)&0xFF);
PrintAndLogEx(HINT, "Connect with: " _YELLOW_("pm3 -p tcp:%u.%u.%u.%u:%u"),
ip & 0xFF, (ip>>8)&0xFF, (ip>>16)&0xFF, (ip>>24)&0xFF, port);
return PM3_SUCCESS;
}
static int CmdBwmCharge(const char *Cmd) {
CLIParserContext *ctx;
CLIParserInit(&ctx, "hw bwmcharge",