Skip to content

Commit

Permalink
BLE: Show local address at the bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
wh201906 committed Apr 5, 2024
1 parent df2b2be commit 511ec17
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1120,6 +1120,8 @@ QBluetoothAddress Connection::BT_localAddress()
return m_BTSocket->localAddress();
else if(m_type == BT_Server && m_BTServer != nullptr)
return m_BTServer->serverAddress();
else if(m_type == BLE_Central && m_BLEController != nullptr)
return m_BLEController->localAddress();
return QBluetoothAddress();
}

Expand Down

0 comments on commit 511ec17

Please sign in to comment.