mirror of
https://github.com/OpenBluetoothToolbox/SimpleBLE
synced 2025-10-16 05:26:52 +08:00

* Add TxPower support to simplebluez * Update simplebluez example * Add address type property * Add address type to adapter * Fix wrong function name * Add TxPower to simpleBLE * Fix typo * Fix macos typos * Update example * Syntax fix * Formatting fix to example * Add address_type to simpleble * Update simpleble-c * Fix typo * Fix output formatting * Add missing tx_power to plain * Add missing tx_power to windows * Add python changes * Add tx power field to example * Tx Power formatting changeg * Remove from adapter * Fix typo * Fix some Windows bugs * Fixed Windows compilation issues * Linting * Changed periphreal address type to enum. Migrated Windows * Ported changes to MacOS * Ported changes to Plain backend * Linting * Added address_type to scan example * Ported Linux over * Minor fixes. Linux returns validated TX power * Linting * Fixed TX power detection for Windows * Ported correct TxPower extraction to MacOS * Fixed Python enumerations and updated changelog. * Linting Co-authored-by: Cameron Miller <cameron.miller@homeaware.com> Co-authored-by: Kevin Dewald <5274600+kdewald@users.noreply.github.com> Co-authored-by: Kevin Dewald <kdewald@itba.edu.ar>
13 lines
325 B
Python
13 lines
325 B
Python
import simplepyble
|
|
|
|
if __name__ == "__main__":
|
|
print(f"Running on {simplepyble.get_operating_system()}")
|
|
|
|
adapters = simplepyble.Adapter.get_adapters()
|
|
|
|
if len(adapters) == 0:
|
|
print("No adapters found")
|
|
|
|
for adapter in adapters:
|
|
print(f"Adapter: {adapter.identifier()} [{adapter.address()}]")
|