simplepyble 1.2.1.dev106__tar.gz → 1.2.1.dev115__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/Cargo.toml +2 -2
- {simplepyble-1.2.1.dev106/simplepyble/src/simplepyble.egg-info → simplepyble-1.2.1.dev115}/PKG-INFO +3 -3
- simplepyble-1.2.1.dev115/VERSION +1 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/setup.py +2 -2
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/PeripheralAndroid.h +3 -2
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/simulator/LocalPeripheralSimulator.cpp +8 -1
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplepyble/README.md +1 -1
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplepyble/src/main.cpp +4 -0
- simplepyble-1.2.1.dev115/simplepyble/src/python_callback.hpp +99 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115/simplepyble/src/simplepyble.egg-info}/PKG-INFO +3 -3
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplepyble/src/simplepyble.egg-info/SOURCES.txt +1 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplepyble/src/wrap_adapter.cpp +22 -21
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplepyble/src/wrap_advanced.cpp +33 -23
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplepyble/src/wrap_backend.cpp +8 -8
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplepyble/src/wrap_local.cpp +15 -13
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplepyble/src/wrap_peripheral.cpp +30 -26
- simplepyble-1.2.1.dev106/VERSION +0 -1
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/.dockerignore +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/AGENTS.md +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/CONTRIBUTING.md +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/Cargo.lock +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/LICENSE.md +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/README.rst +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/SECURITY.md +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/cmake/epilogue.cmake +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/cmake/find/FindDBus1.cmake +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/cmake/find/Findfmt.cmake +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/cmake/find/Findgoogletest.cmake +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/cmake/parse_version.cmake +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/cmake/prelude.cmake +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/dependencies/README +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/dependencies/external/kvn/kvn_bytearray.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/dependencies/external/kvn/kvn_safe_callback.hpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/dependencies/external/kvn/logfwd.hpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/dependencies/internal/include/fmt/LICENSE +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/dependencies/internal/include/fmt/args.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/dependencies/internal/include/fmt/base.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/dependencies/internal/include/fmt/chrono.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/dependencies/internal/include/fmt/color.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/dependencies/internal/include/fmt/compile.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/dependencies/internal/include/fmt/core.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/dependencies/internal/include/fmt/enum.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/dependencies/internal/include/fmt/fmt-c.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/dependencies/internal/include/fmt/format-inl.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/dependencies/internal/include/fmt/format.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/dependencies/internal/include/fmt/os.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/dependencies/internal/include/fmt/ostream.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/dependencies/internal/include/fmt/printf.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/dependencies/internal/include/fmt/ranges.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/dependencies/internal/include/fmt/std.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/dependencies/internal/include/fmt/xchar.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/dependencies/internal/include/nanopb/pb.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/dependencies/internal/include/nanopb/pb_common.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/dependencies/internal/include/nanopb/pb_decode.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/dependencies/internal/include/nanopb/pb_encode.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/dependencies/internal/include/simplejni/Common.hpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/dependencies/internal/include/simplejni/References.hpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/dependencies/internal/include/simplejni/Registry.hpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/dependencies/internal/include/simplejni/VM.hpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/dependencies/internal/include/simplejni/java/lang/Integer.hpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/dependencies/internal/include/simplejni/java/util/ArrayList.hpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/dependencies/internal/include/simplejni/java/util/HashMap.hpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/dependencies/internal/src/nanopb/pb_common.c +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/dependencies/internal/src/nanopb/pb_decode.c +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/dependencies/internal/src/nanopb/pb_encode.c +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/dependencies/internal/src/simplejni/Common.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/dependencies/internal/src/simplejni/java/lang/Integer.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/dependencies/internal/src/simplejni/java/util/ArrayList.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/dependencies/internal/src/simplejni/java/util/HashMap.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/pyproject.toml +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/setup.cfg +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/CMakeLists.txt +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/cmake/simpleble-config.cmake.in +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/cmake/simpleble.pc.in +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/include/simpleble/Adapter.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/include/simpleble/AdapterSafe.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/include/simpleble/Advanced.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/include/simpleble/Backend.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/include/simpleble/Characteristic.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/include/simpleble/Config.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/include/simpleble/Descriptor.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/include/simpleble/Error.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/include/simpleble/Exceptions.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/include/simpleble/Logging.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/include/simpleble/Peripheral.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/include/simpleble/PeripheralSafe.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/include/simpleble/Service.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/include/simpleble/SimpleBLE.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/include/simpleble/Simulation.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/include/simpleble/Types.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/include/simpleble/Utils.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/include/simpleble/local/Characteristic.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/include/simpleble/local/Peripheral.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/include/simpleble/local/Service.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/include/simpleble/simulation/Adapter.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/include/simpleble/simulation/Connection.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/include/simpleble/simulation/Device.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/include/simpleble/simulation/Environment.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/include/simpleble/simulation/Link.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/include/simpleble/simulation/Types.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/CommonUtils.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/Config.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/Error.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/Exceptions.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/Logging.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/LoggingInternal.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/Utils.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/AdapterAndroid.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/AdapterAndroid.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/BackendAndroid.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/BackendAndroid.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/LocalCharacteristicAndroid.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/LocalCharacteristicAndroid.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/LocalPeripheralAndroid.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/LocalPeripheralAndroid.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/LocalServiceAndroid.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/LocalServiceAndroid.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/PeripheralAndroid.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/bridge/AdvertiseCallback.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/bridge/AdvertiseCallback.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/bridge/BluetoothGattCallback.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/bridge/BluetoothGattCallback.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/bridge/GattServerCallback.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/bridge/GattServerCallback.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/bridge/ScanCallback.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/bridge/ScanCallback.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/types/android/bluetooth/BluetoothAdapter.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/types/android/bluetooth/BluetoothAdapter.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/types/android/bluetooth/BluetoothDevice.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/types/android/bluetooth/BluetoothDevice.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/types/android/bluetooth/BluetoothGatt.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/types/android/bluetooth/BluetoothGatt.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/types/android/bluetooth/BluetoothGattCharacteristic.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/types/android/bluetooth/BluetoothGattCharacteristic.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/types/android/bluetooth/BluetoothGattDescriptor.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/types/android/bluetooth/BluetoothGattDescriptor.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/types/android/bluetooth/BluetoothGattServer.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/types/android/bluetooth/BluetoothGattServer.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/types/android/bluetooth/BluetoothGattService.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/types/android/bluetooth/BluetoothGattService.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/types/android/bluetooth/BluetoothManager.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/types/android/bluetooth/BluetoothManager.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/types/android/bluetooth/le/AdvertiseData.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/types/android/bluetooth/le/AdvertiseData.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/types/android/bluetooth/le/AdvertiseSettings.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/types/android/bluetooth/le/AdvertiseSettings.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/types/android/bluetooth/le/BluetoothLeAdvertiser.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/types/android/bluetooth/le/BluetoothLeAdvertiser.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/types/android/bluetooth/le/BluetoothScanner.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/types/android/bluetooth/le/BluetoothScanner.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/types/android/bluetooth/le/ScanRecord.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/types/android/bluetooth/le/ScanRecord.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/types/android/bluetooth/le/ScanResult.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/types/android/bluetooth/le/ScanResult.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/types/android/bluetooth/le/ScanSettings.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/types/android/bluetooth/le/ScanSettings.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/types/android/content/Context.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/types/android/content/Context.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/types/android/os/ParcelUUID.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/types/android/os/ParcelUUID.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/types/android/util/SparseArray.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/types/android/util/SparseArray.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/types/java/util/Iterator.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/types/java/util/Iterator.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/types/java/util/List.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/types/java/util/List.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/types/java/util/Set.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/types/java/util/Set.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/types/java/util/UUID.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/android/types/java/util/UUID.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/common/AdapterBase.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/common/AdapterBase.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/common/AdapterBaseTypes.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/common/BackendBase.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/common/BackendUtils.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/common/CharacteristicBase.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/common/CharacteristicBase.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/common/DescriptorBase.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/common/DescriptorBase.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/common/LocalCharacteristicBase.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/common/LocalPeripheralBase.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/common/LocalServiceBase.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/common/PeripheralBase.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/common/ServiceBase.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/common/ServiceBase.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/dongl/AdapterDongl.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/dongl/AdapterDongl.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/dongl/AdvancedDongl.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/dongl/AdvertisingData.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/dongl/BackendDongl.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/dongl/PeripheralDongl.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/dongl/PeripheralDongl.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/dongl/Utils.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/dongl/Utils.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/dongl/protocol/basic.pb.c +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/dongl/protocol/basic.pb.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/dongl/protocol/d2h.pb.c +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/dongl/protocol/d2h.pb.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/dongl/protocol/h2d.pb.c +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/dongl/protocol/h2d.pb.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/dongl/protocol/simpleble.pb.c +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/dongl/protocol/simpleble.pb.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/dongl/serial/Protocol.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/dongl/serial/Protocol.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/dongl/serial/ProtocolBase.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/dongl/serial/ProtocolBase.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/dongl/serial/Wire.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/dongl/serial/Wire.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/dongl/usb/UsbHelper.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/dongl/usb/UsbHelper.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/dongl/usb/UsbHelperApple.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/dongl/usb/UsbHelperApple.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/dongl/usb/UsbHelperImpl.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/dongl/usb/UsbHelperLinux.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/dongl/usb/UsbHelperLinux.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/dongl/usb/UsbHelperNull.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/dongl/usb/UsbHelperNull.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/dongl/usb/UsbHelperWindows.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/dongl/usb/UsbHelperWindows.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/linux/AdapterLinux.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/linux/AdapterLinux.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/linux/BackendBluez.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/linux/BackendBluez.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/linux/LocalCharacteristicLinux.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/linux/LocalCharacteristicLinux.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/linux/LocalPeripheralLinux.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/linux/LocalPeripheralLinux.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/linux/LocalServiceLinux.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/linux/LocalServiceLinux.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/linux/PeripheralLinux.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/linux/PeripheralLinux.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/macos/AdapterBaseMacOS.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/macos/AdapterBaseMacOS.mm +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/macos/AdapterMac.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/macos/AdapterMac.mm +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/macos/BackendCoreBluetooth.mm +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/macos/LocalCharacteristicMac.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/macos/LocalCharacteristicMac.mm +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/macos/LocalPeripheralBaseMacOS.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/macos/LocalPeripheralBaseMacOS.mm +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/macos/LocalPeripheralMac.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/macos/LocalPeripheralMac.mm +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/macos/LocalServiceMac.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/macos/LocalServiceMac.mm +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/macos/PeripheralBaseMacOS.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/macos/PeripheralBaseMacOS.mm +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/macos/PeripheralMac.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/macos/PeripheralMac.mm +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/macos/Utils.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/macos/Utils.mm +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/plain/BackendPlain.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/simulator/AdapterSimulator.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/simulator/AdapterSimulator.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/simulator/BackendSimulator.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/simulator/LocalPeripheralSimulator.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/simulator/PeripheralSimulator.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/simulator/PeripheralSimulator.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/simulator/SimulationAdapter.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/simulator/SimulationConnection.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/simulator/SimulationDevice.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/simulator/SimulationEnvironment.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/simulator/SimulationLink.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/simulator/core/ConnectionCore.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/simulator/core/ConnectionCore.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/simulator/core/DeviceCore.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/simulator/core/DeviceCore.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/simulator/core/EnvironmentCore.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/simulator/core/EnvironmentCore.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/simulator/core/LinkCore.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/simulator/core/Pdu.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/simulator/core/Pdu.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/simulator/core/SimulatorUtils.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/simulator/core/SimulatorUtils.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/windows/AdapterWindows.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/windows/AdapterWindows.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/windows/BackendWinRT.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/windows/BackendWinRT.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/windows/LocalCharacteristicWindows.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/windows/LocalCharacteristicWindows.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/windows/LocalPeripheralWindows.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/windows/LocalPeripheralWindows.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/windows/LocalServiceWindows.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/windows/LocalServiceWindows.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/windows/MtaManager.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/windows/MtaManager.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/windows/PeripheralWindows.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/windows/PeripheralWindows.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/windows/Utils.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/backends/windows/Utils.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/builders/BuildVec.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/builders/BuilderBase.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/external/kvn_safe_callback.hpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/external/kvn_safe_map.hpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/external/kvn_scheduler.hpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/external/kvn_threadrunner.hpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/external/logfwd.hpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/frontends/base/Adapter.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/frontends/base/Advanced.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/frontends/base/Backend.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/frontends/base/Characteristic.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/frontends/base/Descriptor.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/frontends/base/LocalCharacteristic.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/frontends/base/LocalPeripheral.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/frontends/base/LocalService.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/frontends/base/Peripheral.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/frontends/base/Service.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/frontends/safe/AdapterSafe.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpleble/src/frontends/safe/PeripheralSafe.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/CMakeLists.txt +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/cmake/simplebluez-config.cmake.in +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/cmake/simplebluez.pc.in +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/include/simplebluez/Bluez.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/include/simplebluez/Config.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/include/simplebluez/Exceptions.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/include/simplebluez/Types.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/include/simplebluez/interfaces/Adapter1.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/include/simplebluez/interfaces/Agent1.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/include/simplebluez/interfaces/AgentManager1.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/include/simplebluez/interfaces/Battery1.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/include/simplebluez/interfaces/Device1.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/include/simplebluez/interfaces/GattCharacteristic1.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/include/simplebluez/interfaces/GattDescriptor1.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/include/simplebluez/interfaces/GattManager1.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/include/simplebluez/interfaces/GattService1.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/include/simplebluez/interfaces/LEAdvertisement1.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/include/simplebluez/interfaces/LEAdvertisingManager1.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/include/simplebluez/standard/Adapter.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/include/simplebluez/standard/Advertisement.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/include/simplebluez/standard/Agent.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/include/simplebluez/standard/BluezOrg.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/include/simplebluez/standard/BluezOrgBluez.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/include/simplebluez/standard/BluezRoot.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/include/simplebluez/standard/Characteristic.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/include/simplebluez/standard/CustomRoot.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/include/simplebluez/standard/Descriptor.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/include/simplebluez/standard/Device.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/include/simplebluez/standard/Service.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/include/simplebluez/standard/ServiceManager.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/src/Bluez.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/src/Config.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/src/Exceptions.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/src/Logging.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/src/Logging.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/src/interfaces/Adapter1.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/src/interfaces/Agent1.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/src/interfaces/AgentManager1.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/src/interfaces/Battery1.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/src/interfaces/Device1.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/src/interfaces/GattCharacteristic1.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/src/interfaces/GattDescriptor1.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/src/interfaces/GattManager1.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/src/interfaces/GattService1.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/src/interfaces/LEAdvertisement1.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/src/interfaces/LEAdvertisingManager1.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/src/standard/Adapter.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/src/standard/Advertisement.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/src/standard/Agent.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/src/standard/BluezOrg.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/src/standard/BluezOrgBluez.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/src/standard/BluezRoot.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/src/standard/Characteristic.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/src/standard/CustomRoot.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/src/standard/Descriptor.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/src/standard/Device.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/src/standard/Service.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplebluez/src/standard/ServiceManager.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpledbus/CMakeLists.txt +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpledbus/cmake/simpledbus-config.cmake.in +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpledbus/cmake/simpledbus.pc.in +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpledbus/include/simpledbus/Config.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpledbus/include/simpledbus/advanced/Interface.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpledbus/include/simpledbus/advanced/InterfaceRegistry.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpledbus/include/simpledbus/advanced/Proxy.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpledbus/include/simpledbus/base/Connection.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpledbus/include/simpledbus/base/Exceptions.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpledbus/include/simpledbus/base/Holder.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpledbus/include/simpledbus/base/Logging.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpledbus/include/simpledbus/base/Message.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpledbus/include/simpledbus/base/Path.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpledbus/include/simpledbus/base/UnixSocket.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpledbus/include/simpledbus/interfaces/Introspectable.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpledbus/include/simpledbus/interfaces/ObjectManager.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpledbus/include/simpledbus/interfaces/Properties.h +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpledbus/src/Config.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpledbus/src/advanced/Interface.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpledbus/src/advanced/Proxy.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpledbus/src/base/Connection.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpledbus/src/base/Exceptions.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpledbus/src/base/Holder.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpledbus/src/base/Logging.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpledbus/src/base/Message.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpledbus/src/base/Path.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpledbus/src/base/UnixSocket.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpledbus/src/interfaces/Introspectable.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpledbus/src/interfaces/ObjectManager.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simpledbus/src/interfaces/Properties.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplepyble/CMakeLists.txt +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplepyble/requirements.txt +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplepyble/src/simplepyble/__init__.py +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplepyble/src/simplepyble/__init__.pyi +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplepyble/src/simplepyble/aio.py +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplepyble/src/simplepyble/py.typed +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplepyble/src/simplepyble.egg-info/dependency_links.txt +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplepyble/src/simplepyble.egg-info/top_level.txt +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplepyble/src/wrap_characteristic.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplepyble/src/wrap_config.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplepyble/src/wrap_descriptor.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplepyble/src/wrap_logging.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplepyble/src/wrap_service.cpp +0 -0
- {simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115}/simplepyble/src/wrap_types.cpp +0 -0
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
edition = "2021"
|
|
3
3
|
|
|
4
4
|
name = "simplersble"
|
|
5
|
-
version = "1.2.1-
|
|
5
|
+
version = "1.2.1-dev115"
|
|
6
6
|
rust-version = "1.82"
|
|
7
7
|
license = "BUSL-1.1"
|
|
8
|
-
description = "
|
|
8
|
+
description = "Rust bindings for the cross-platform SimpleBLE Bluetooth Low Energy library, for Windows, macOS, and Linux. Free for non-commercial use; commercial use requires a license."
|
|
9
9
|
readme = "simplersble/README.md"
|
|
10
10
|
repository = "https://github.com/simpleble/simpleble"
|
|
11
11
|
|
{simplepyble-1.2.1.dev106/simplepyble/src/simplepyble.egg-info → simplepyble-1.2.1.dev115}/PKG-INFO
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: simplepyble
|
|
3
|
-
Version: 1.2.1.
|
|
4
|
-
Summary:
|
|
3
|
+
Version: 1.2.1.dev115
|
|
4
|
+
Summary: Python bindings for the cross-platform SimpleBLE Bluetooth Low Energy library, for Windows, macOS, and Linux. Free for non-commercial use; commercial use requires a license.
|
|
5
5
|
Home-page: https://github.com/simpleble/simpleble
|
|
6
6
|
Author: Kevin Dewald
|
|
7
7
|
Author-email: kevin@simpleble.org
|
|
@@ -196,7 +196,7 @@ callbacks and stops its scan, subscriptions, or advertising.
|
|
|
196
196
|
|
|
197
197
|
| Platform | Architectures | Requirements |
|
|
198
198
|
| --- | --- | --- |
|
|
199
|
-
| macOS
|
|
199
|
+
| macOS 15.0 or newer | x64, arm64 | Bluetooth permission for the app that runs Python |
|
|
200
200
|
| Windows 10 or newer | x64, x86, arm64 | |
|
|
201
201
|
| Linux | x64, x86, arm64 | BlueZ and the D-Bus library |
|
|
202
202
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.2.1-dev115
|
|
@@ -42,7 +42,7 @@ cmake_options.append(f"-Dpybind11_DIR={pybind11.get_cmake_dir()}")
|
|
|
42
42
|
if sys.platform == "win32":
|
|
43
43
|
cmake_options.append("-DCMAKE_SYSTEM_VERSION=10.0.19041.0")
|
|
44
44
|
elif sys.platform.startswith("darwin"):
|
|
45
|
-
cmake_options.append("-DCMAKE_OSX_DEPLOYMENT_TARGET=
|
|
45
|
+
cmake_options.append("-DCMAKE_OSX_DEPLOYMENT_TARGET=15.0")
|
|
46
46
|
cmake_options.append(f"-DPYTHON_EXECUTABLE={sys.executable}")
|
|
47
47
|
cmake_options.append(f"-DSIMPLEPYBLE_VERSION={version_str}")
|
|
48
48
|
|
|
@@ -58,7 +58,7 @@ skbuild.setup(
|
|
|
58
58
|
author="Kevin Dewald",
|
|
59
59
|
author_email="kevin@simpleble.org",
|
|
60
60
|
url="https://github.com/simpleble/simpleble",
|
|
61
|
-
description="
|
|
61
|
+
description="Python bindings for the cross-platform SimpleBLE Bluetooth Low Energy library, for Windows, macOS, and Linux. Free for non-commercial use; commercial use requires a license.",
|
|
62
62
|
long_description=long_description,
|
|
63
63
|
long_description_content_type="text/markdown",
|
|
64
64
|
license_expression="BUSL-1.1",
|
|
@@ -66,8 +66,9 @@ class PeripheralAndroid : public PeripheralBase {
|
|
|
66
66
|
|
|
67
67
|
int16_t rssi_ = INT16_MIN;
|
|
68
68
|
int16_t tx_power_ = INT16_MIN;
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
|
|
70
|
+
// NOTE: A bonded device has no advertisement until it is scanned. Like Windows, assume it is connectable.
|
|
71
|
+
bool connectable_ = true;
|
|
71
72
|
|
|
72
73
|
std::vector<std::string> advertised_services_;
|
|
73
74
|
std::map<uint16_t, kvn::bytearray> manufacturer_data_;
|
|
@@ -473,7 +473,14 @@ class PeripheralSimulator final : public PeripheralBase {
|
|
|
473
473
|
return device_->started && environment && environment->is_active();
|
|
474
474
|
}
|
|
475
475
|
|
|
476
|
-
bool is_advertising() override {
|
|
476
|
+
bool is_advertising() override {
|
|
477
|
+
if (!is_started()) return false;
|
|
478
|
+
|
|
479
|
+
// Same rule as the environment: the device stops advertising once it has as many connections as it accepts.
|
|
480
|
+
auto core = device_->internal();
|
|
481
|
+
std::lock_guard<std::mutex> lock(core->mutex);
|
|
482
|
+
return core->connections.size() < core->settings.max_connections;
|
|
483
|
+
}
|
|
477
484
|
|
|
478
485
|
void set_callback_on_client_connected(std::function<void(BluetoothAddress)> callback) override {
|
|
479
486
|
if (callback) {
|
|
@@ -163,7 +163,7 @@ callbacks and stops its scan, subscriptions, or advertising.
|
|
|
163
163
|
|
|
164
164
|
| Platform | Architectures | Requirements |
|
|
165
165
|
| --- | --- | --- |
|
|
166
|
-
| macOS
|
|
166
|
+
| macOS 15.0 or newer | x64, arm64 | Bluetooth permission for the app that runs Python |
|
|
167
167
|
| Windows 10 or newer | x64, x86, arm64 | |
|
|
168
168
|
| Linux | x64, x86, arm64 | BlueZ and the D-Bus library |
|
|
169
169
|
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
#include "simpleble/SimpleBLE.h"
|
|
6
6
|
|
|
7
|
+
#include "python_callback.hpp"
|
|
8
|
+
|
|
7
9
|
/**
|
|
8
10
|
* Useful links for documentation while I figure this one out.
|
|
9
11
|
* https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html
|
|
@@ -28,6 +30,8 @@ void wrap_logging(py::module& m);
|
|
|
28
30
|
PYBIND11_MODULE(_simplepyble, m) {
|
|
29
31
|
m.attr("__version__") = SIMPLEPYBLE_VERSION;
|
|
30
32
|
|
|
33
|
+
simplepyble::PythonCallback::register_exit_hook();
|
|
34
|
+
|
|
31
35
|
// m.doc() = R"pbdoc(
|
|
32
36
|
// ====================
|
|
33
37
|
// Python API Reference
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
#pragma once
|
|
2
|
+
|
|
3
|
+
#include <pybind11/pybind11.h>
|
|
4
|
+
|
|
5
|
+
#include <atomic>
|
|
6
|
+
#include <functional>
|
|
7
|
+
#include <memory>
|
|
8
|
+
#include <optional>
|
|
9
|
+
#include <stdexcept>
|
|
10
|
+
#include <utility>
|
|
11
|
+
|
|
12
|
+
namespace py = pybind11;
|
|
13
|
+
|
|
14
|
+
namespace simplepyble {
|
|
15
|
+
|
|
16
|
+
// Holds a Python callable for SimpleBLE to call from its own threads.
|
|
17
|
+
//
|
|
18
|
+
// NOTE: pybind11's std::function conversion takes the GIL when its last copy is destroyed, which aborts the process
|
|
19
|
+
// when SimpleBLE drops a callback after the interpreter has finalized. Once Python is exiting, this holder doesn't
|
|
20
|
+
// call into Python and leaks the callable instead.
|
|
21
|
+
class PythonCallback {
|
|
22
|
+
public:
|
|
23
|
+
explicit PythonCallback(py::function callable) : holder_(std::make_shared<Holder>(std::move(callable))) {}
|
|
24
|
+
|
|
25
|
+
// Registers the atexit hook that stops every PythonCallback from calling into Python. Called once at import.
|
|
26
|
+
// NOTE: atexit runs hooks in reverse order, so this one runs after those registered later, like the aio cleanup.
|
|
27
|
+
static void register_exit_hook() {
|
|
28
|
+
py::module_::import("atexit").attr("register")(py::cpp_function([]() { python_exiting_ = true; }));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// Runs body(callable) with the GIL held and returns its result, for callbacks whose answer SimpleBLE needs.
|
|
32
|
+
// Once Python is exiting it throws instead, which SimpleBLE treats like a callback that raised.
|
|
33
|
+
template <typename Body>
|
|
34
|
+
auto call(Body&& body) const {
|
|
35
|
+
if (!python_running()) throw std::runtime_error("Python is exiting");
|
|
36
|
+
|
|
37
|
+
py::gil_scoped_acquire gil;
|
|
38
|
+
return body(holder_->callable);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// Runs body(callable) with the GIL held, for events. Once Python is exiting the event is dropped.
|
|
42
|
+
// NOTE: Throwing here instead would make SimpleBLE log every event that arrives during exit.
|
|
43
|
+
template <typename Body>
|
|
44
|
+
void deliver(Body&& body) const {
|
|
45
|
+
if (!python_running()) return;
|
|
46
|
+
|
|
47
|
+
py::gil_scoped_acquire gil;
|
|
48
|
+
body(holder_->callable);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
template <typename... Args>
|
|
52
|
+
void operator()(Args&&... args) const {
|
|
53
|
+
deliver([&](const py::function& callable) { callable(std::forward<Args>(args)...); });
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
private:
|
|
57
|
+
struct Holder {
|
|
58
|
+
explicit Holder(py::function callable) : callable(std::move(callable)) {}
|
|
59
|
+
|
|
60
|
+
~Holder() {
|
|
61
|
+
if (!python_running()) {
|
|
62
|
+
callable.release();
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
py::gil_scoped_acquire gil;
|
|
67
|
+
callable = py::function();
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
py::function callable;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
// NOTE: Taking the GIL from a native thread once the interpreter is finalizing aborts the process or hangs the
|
|
74
|
+
// thread, so every call into Python checks this first. The atexit hook sets the flag before finalization starts.
|
|
75
|
+
static bool python_running() { return !python_exiting_ && Py_IsInitialized(); }
|
|
76
|
+
|
|
77
|
+
static inline std::atomic_bool python_exiting_{false};
|
|
78
|
+
|
|
79
|
+
// NOTE: SimpleBLE copies callbacks without the GIL, so copies share one holder instead of touching the
|
|
80
|
+
// reference count.
|
|
81
|
+
std::shared_ptr<Holder> holder_;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
// Converts a Python callable into a native callback. None unregisters the callback.
|
|
85
|
+
template <typename Signature>
|
|
86
|
+
std::function<Signature> native_callback(std::optional<py::function> callable) {
|
|
87
|
+
if (!callable) return nullptr;
|
|
88
|
+
return PythonCallback(std::move(*callable));
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// Wraps a SimpleBLE callback setter whose arguments pybind11 can convert, for use with py::gil_scoped_release.
|
|
92
|
+
template <typename Class, typename Signature>
|
|
93
|
+
auto callback_setter(void (Class::*setter)(std::function<Signature>)) {
|
|
94
|
+
return [setter](Class& object, std::optional<py::function> callable) {
|
|
95
|
+
(object.*setter)(native_callback<Signature>(std::move(callable)));
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
} // namespace simplepyble
|
{simplepyble-1.2.1.dev106 → simplepyble-1.2.1.dev115/simplepyble/src/simplepyble.egg-info}/PKG-INFO
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: simplepyble
|
|
3
|
-
Version: 1.2.1.
|
|
4
|
-
Summary:
|
|
3
|
+
Version: 1.2.1.dev115
|
|
4
|
+
Summary: Python bindings for the cross-platform SimpleBLE Bluetooth Low Energy library, for Windows, macOS, and Linux. Free for non-commercial use; commercial use requires a license.
|
|
5
5
|
Home-page: https://github.com/simpleble/simpleble
|
|
6
6
|
Author: Kevin Dewald
|
|
7
7
|
Author-email: kevin@simpleble.org
|
|
@@ -196,7 +196,7 @@ callbacks and stops its scan, subscriptions, or advertising.
|
|
|
196
196
|
|
|
197
197
|
| Platform | Architectures | Requirements |
|
|
198
198
|
| --- | --- | --- |
|
|
199
|
-
| macOS
|
|
199
|
+
| macOS 15.0 or newer | x64, arm64 | Bluetooth permission for the app that runs Python |
|
|
200
200
|
| Windows 10 or newer | x64, x86, arm64 | |
|
|
201
201
|
| Linux | x64, x86, arm64 | BlueZ and the D-Bus library |
|
|
202
202
|
|
|
@@ -385,6 +385,7 @@ simplepyble/CMakeLists.txt
|
|
|
385
385
|
simplepyble/README.md
|
|
386
386
|
simplepyble/requirements.txt
|
|
387
387
|
simplepyble/src/main.cpp
|
|
388
|
+
simplepyble/src/python_callback.hpp
|
|
388
389
|
simplepyble/src/wrap_adapter.cpp
|
|
389
390
|
simplepyble/src/wrap_advanced.cpp
|
|
390
391
|
simplepyble/src/wrap_backend.cpp
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
#include <pybind11/functional.h>
|
|
2
1
|
#include <pybind11/pybind11.h>
|
|
3
2
|
#include <pybind11/stl.h>
|
|
4
3
|
|
|
5
4
|
#include "simpleble/SimpleBLE.h"
|
|
6
5
|
|
|
6
|
+
#include "python_callback.hpp"
|
|
7
|
+
|
|
7
8
|
namespace py = pybind11;
|
|
8
9
|
|
|
9
10
|
constexpr auto kDocsAdapter = R"pbdoc(
|
|
@@ -101,26 +102,26 @@ constexpr auto kDocsAdapterCreateLocalPeripheral = R"pbdoc(
|
|
|
101
102
|
void wrap_adapter(py::module& m) {
|
|
102
103
|
// TODO: Add __str__ and __repr__ methods
|
|
103
104
|
py::class_<SimpleBLE::Adapter>(m, "Adapter")
|
|
104
|
-
.def_static("bluetooth_enabled", &SimpleBLE::Adapter::bluetooth_enabled, kDocsAdapterBluetoothEnabled)
|
|
105
|
-
.def_static("get_adapters", &SimpleBLE::Adapter::get_adapters, kDocsAdapterGetAdapters)
|
|
106
|
-
.def("initialized", &SimpleBLE::Adapter::initialized, kDocsAdapterInitialized)
|
|
107
|
-
.def("identifier", &SimpleBLE::Adapter::identifier, kDocsAdapterIdentifier)
|
|
108
|
-
.def("address", &SimpleBLE::Adapter::address, kDocsAdapterAddress)
|
|
109
|
-
.def("power_on", &SimpleBLE::Adapter::power_on, kDocsAdapterPowerOn)
|
|
110
|
-
.def("power_off", &SimpleBLE::Adapter::power_off, kDocsAdapterPowerOff)
|
|
111
|
-
.def("is_powered", &SimpleBLE::Adapter::is_powered, kDocsAdapterIsPowered)
|
|
112
|
-
.def("scan_start", &SimpleBLE::Adapter::scan_start, kDocsAdapterScanStart)
|
|
113
|
-
.def("scan_stop", &SimpleBLE::Adapter::scan_stop, kDocsAdapterScanStop)
|
|
114
|
-
.def("scan_is_active", &SimpleBLE::Adapter::scan_is_active, kDocsAdapterScanIsActive)
|
|
105
|
+
.def_static("bluetooth_enabled", &SimpleBLE::Adapter::bluetooth_enabled, py::call_guard<py::gil_scoped_release>(), kDocsAdapterBluetoothEnabled)
|
|
106
|
+
.def_static("get_adapters", &SimpleBLE::Adapter::get_adapters, py::call_guard<py::gil_scoped_release>(), kDocsAdapterGetAdapters)
|
|
107
|
+
.def("initialized", &SimpleBLE::Adapter::initialized, py::call_guard<py::gil_scoped_release>(), kDocsAdapterInitialized)
|
|
108
|
+
.def("identifier", &SimpleBLE::Adapter::identifier, py::call_guard<py::gil_scoped_release>(), kDocsAdapterIdentifier)
|
|
109
|
+
.def("address", &SimpleBLE::Adapter::address, py::call_guard<py::gil_scoped_release>(), kDocsAdapterAddress)
|
|
110
|
+
.def("power_on", &SimpleBLE::Adapter::power_on, py::call_guard<py::gil_scoped_release>(), kDocsAdapterPowerOn)
|
|
111
|
+
.def("power_off", &SimpleBLE::Adapter::power_off, py::call_guard<py::gil_scoped_release>(), kDocsAdapterPowerOff)
|
|
112
|
+
.def("is_powered", &SimpleBLE::Adapter::is_powered, py::call_guard<py::gil_scoped_release>(), kDocsAdapterIsPowered)
|
|
113
|
+
.def("scan_start", &SimpleBLE::Adapter::scan_start, py::call_guard<py::gil_scoped_release>(), kDocsAdapterScanStart)
|
|
114
|
+
.def("scan_stop", &SimpleBLE::Adapter::scan_stop, py::call_guard<py::gil_scoped_release>(), kDocsAdapterScanStop)
|
|
115
|
+
.def("scan_is_active", &SimpleBLE::Adapter::scan_is_active, py::call_guard<py::gil_scoped_release>(), kDocsAdapterScanIsActive)
|
|
115
116
|
.def("scan_for", &SimpleBLE::Adapter::scan_for, py::call_guard<py::gil_scoped_release>(), kDocsAdapterScanFor)
|
|
116
|
-
.def("scan_get_results", &SimpleBLE::Adapter::scan_get_results, kDocsAdapterScanGetResults)
|
|
117
|
-
.def("set_callback_on_scan_start", &SimpleBLE::Adapter::set_callback_on_scan_start, py::call_guard<py::gil_scoped_release>(),
|
|
118
|
-
.def("set_callback_on_scan_stop", &SimpleBLE::Adapter::set_callback_on_scan_stop, py::call_guard<py::gil_scoped_release>(),
|
|
119
|
-
.def("set_callback_on_scan_found", &SimpleBLE::Adapter::set_callback_on_scan_found, py::call_guard<py::gil_scoped_release>(),
|
|
120
|
-
.def("set_callback_on_scan_updated", &SimpleBLE::Adapter::set_callback_on_scan_updated, py::call_guard<py::gil_scoped_release>(),
|
|
121
|
-
.def("set_callback_on_power_on", &SimpleBLE::Adapter::set_callback_on_power_on, py::call_guard<py::gil_scoped_release>(),
|
|
122
|
-
.def("set_callback_on_power_off", &SimpleBLE::Adapter::set_callback_on_power_off, py::call_guard<py::gil_scoped_release>(),
|
|
123
|
-
.def("get_paired_peripherals", &SimpleBLE::Adapter::get_paired_peripherals, kDocsAdapterGetPairedPeripherals)
|
|
124
|
-
.def("get_connected_peripherals", &SimpleBLE::Adapter::get_connected_peripherals, kDocsAdapterGetConnectedPeripherals)
|
|
117
|
+
.def("scan_get_results", &SimpleBLE::Adapter::scan_get_results, py::call_guard<py::gil_scoped_release>(), kDocsAdapterScanGetResults)
|
|
118
|
+
.def("set_callback_on_scan_start", simplepyble::callback_setter(&SimpleBLE::Adapter::set_callback_on_scan_start), py::call_guard<py::gil_scoped_release>(), kDocsAdapterSetCallbackOnScanStart)
|
|
119
|
+
.def("set_callback_on_scan_stop", simplepyble::callback_setter(&SimpleBLE::Adapter::set_callback_on_scan_stop), py::call_guard<py::gil_scoped_release>(), kDocsAdapterSetCallbackOnScanStop)
|
|
120
|
+
.def("set_callback_on_scan_found", simplepyble::callback_setter(&SimpleBLE::Adapter::set_callback_on_scan_found), py::call_guard<py::gil_scoped_release>(), kDocsAdapterSetCallbackOnScanFound)
|
|
121
|
+
.def("set_callback_on_scan_updated", simplepyble::callback_setter(&SimpleBLE::Adapter::set_callback_on_scan_updated), py::call_guard<py::gil_scoped_release>(), kDocsAdapterSetCallbackOnScanUpdated)
|
|
122
|
+
.def("set_callback_on_power_on", simplepyble::callback_setter(&SimpleBLE::Adapter::set_callback_on_power_on), py::call_guard<py::gil_scoped_release>(), kDocsAdapterSetCallbackOnPowerOn)
|
|
123
|
+
.def("set_callback_on_power_off", simplepyble::callback_setter(&SimpleBLE::Adapter::set_callback_on_power_off), py::call_guard<py::gil_scoped_release>(), kDocsAdapterSetCallbackOnPowerOff)
|
|
124
|
+
.def("get_paired_peripherals", &SimpleBLE::Adapter::get_paired_peripherals, py::call_guard<py::gil_scoped_release>(), kDocsAdapterGetPairedPeripherals)
|
|
125
|
+
.def("get_connected_peripherals", &SimpleBLE::Adapter::get_connected_peripherals, py::call_guard<py::gil_scoped_release>(), kDocsAdapterGetConnectedPeripherals)
|
|
125
126
|
.def("create_local_peripheral", &SimpleBLE::Adapter::create_local_peripheral, py::call_guard<py::gil_scoped_release>(), kDocsAdapterCreateLocalPeripheral);
|
|
126
127
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
#include <pybind11/functional.h>
|
|
2
1
|
#include <pybind11/pybind11.h>
|
|
3
2
|
#include <pybind11/stl.h>
|
|
4
3
|
|
|
@@ -7,6 +6,8 @@
|
|
|
7
6
|
|
|
8
7
|
#include "simpleble/Advanced.h"
|
|
9
8
|
|
|
9
|
+
#include "python_callback.hpp"
|
|
10
|
+
|
|
10
11
|
namespace py = pybind11;
|
|
11
12
|
|
|
12
13
|
constexpr auto kDocsDonglSetPasskeyRequestCallback = R"pbdoc(
|
|
@@ -32,42 +33,51 @@ void wrap_advanced(py::module& m) {
|
|
|
32
33
|
auto dongl = advanced.def_submodule("dongl", "SimpleBLE Dongl pairing APIs");
|
|
33
34
|
dongl.def(
|
|
34
35
|
"set_passkey_request_callback",
|
|
35
|
-
[](SimpleBLE::Peripheral& peripheral, std::
|
|
36
|
-
if (!
|
|
36
|
+
[](SimpleBLE::Peripheral& peripheral, std::optional<py::function> cb) {
|
|
37
|
+
if (!cb) {
|
|
37
38
|
SimpleBLE::Advanced::Dongl::set_passkey_request_callback(peripheral, nullptr);
|
|
38
39
|
return;
|
|
39
40
|
}
|
|
41
|
+
simplepyble::PythonCallback callback(std::move(*cb));
|
|
40
42
|
SimpleBLE::Advanced::Dongl::set_passkey_request_callback(
|
|
41
|
-
peripheral, [callback]()
|
|
42
|
-
py::
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
43
|
+
peripheral, [callback]() {
|
|
44
|
+
return callback.call([](const py::function& callable) -> std::optional<std::string> {
|
|
45
|
+
py::object passkey = callable();
|
|
46
|
+
if (passkey.is_none()) return std::nullopt;
|
|
47
|
+
if (!py::isinstance<py::str>(passkey)) {
|
|
48
|
+
throw py::type_error(std::string("passkey must be a str or None, not ") +
|
|
49
|
+
Py_TYPE(passkey.ptr())->tp_name);
|
|
50
|
+
}
|
|
51
|
+
return passkey.cast<std::string>();
|
|
52
|
+
});
|
|
50
53
|
});
|
|
51
54
|
},
|
|
52
55
|
py::call_guard<py::gil_scoped_release>(), kDocsDonglSetPasskeyRequestCallback);
|
|
53
|
-
dongl.def(
|
|
54
|
-
|
|
56
|
+
dongl.def(
|
|
57
|
+
"set_passkey_display_callback",
|
|
58
|
+
[](SimpleBLE::Peripheral& peripheral, std::optional<py::function> cb) {
|
|
59
|
+
SimpleBLE::Advanced::Dongl::set_passkey_display_callback(
|
|
60
|
+
peripheral, simplepyble::native_callback<void(const std::string&)>(std::move(cb)));
|
|
61
|
+
},
|
|
62
|
+
py::call_guard<py::gil_scoped_release>(), kDocsDonglSetPasskeyDisplayCallback);
|
|
55
63
|
dongl.def(
|
|
56
64
|
"set_numeric_comparison_callback",
|
|
57
|
-
[](SimpleBLE::Peripheral& peripheral, std::
|
|
58
|
-
if (!
|
|
65
|
+
[](SimpleBLE::Peripheral& peripheral, std::optional<py::function> cb) {
|
|
66
|
+
if (!cb) {
|
|
59
67
|
SimpleBLE::Advanced::Dongl::set_numeric_comparison_callback(peripheral, nullptr);
|
|
60
68
|
return;
|
|
61
69
|
}
|
|
70
|
+
simplepyble::PythonCallback callback(std::move(*cb));
|
|
62
71
|
SimpleBLE::Advanced::Dongl::set_numeric_comparison_callback(
|
|
63
72
|
peripheral, [callback](const std::string& passkey) {
|
|
64
|
-
py::
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
73
|
+
return callback.call([&](const py::function& callable) {
|
|
74
|
+
py::object accept = callable(passkey);
|
|
75
|
+
if (!PyBool_Check(accept.ptr())) {
|
|
76
|
+
throw py::type_error(std::string("numeric comparison result must be a bool, not ") +
|
|
77
|
+
Py_TYPE(accept.ptr())->tp_name);
|
|
78
|
+
}
|
|
79
|
+
return accept.ptr() == Py_True;
|
|
80
|
+
});
|
|
71
81
|
});
|
|
72
82
|
},
|
|
73
83
|
py::call_guard<py::gil_scoped_release>(), kDocsDonglSetNumericComparisonCallback);
|
|
@@ -43,12 +43,12 @@ constexpr auto kDocsBackendIdentifier = R"pbdoc(
|
|
|
43
43
|
|
|
44
44
|
void wrap_backend(py::module& m) {
|
|
45
45
|
py::class_<SimpleBLE::Backend>(m, "Backend", kDocsBackend)
|
|
46
|
-
.def_static("get_backends", &SimpleBLE::Backend::get_backends, kDocsBackendGetBackends)
|
|
47
|
-
.def_static("get_native", &SimpleBLE::Backend::get_native, kDocsBackendGetNative)
|
|
48
|
-
.def_static("get_dongl", &SimpleBLE::Backend::get_dongl, kDocsBackendGetDongl)
|
|
49
|
-
.def_static("get_simulator", &SimpleBLE::Backend::get_simulator, kDocsBackendGetSimulator)
|
|
50
|
-
.def("initialized", &SimpleBLE::Backend::initialized, kDocsBackendInitialized)
|
|
51
|
-
.def("adapters", &SimpleBLE::Backend::adapters, kDocsBackendAdapters)
|
|
52
|
-
.def("bluetooth_enabled", &SimpleBLE::Backend::bluetooth_enabled, kDocsBackendBluetoothEnabled)
|
|
53
|
-
.def("identifier", &SimpleBLE::Backend::identifier, kDocsBackendIdentifier);
|
|
46
|
+
.def_static("get_backends", &SimpleBLE::Backend::get_backends, py::call_guard<py::gil_scoped_release>(), kDocsBackendGetBackends)
|
|
47
|
+
.def_static("get_native", &SimpleBLE::Backend::get_native, py::call_guard<py::gil_scoped_release>(), kDocsBackendGetNative)
|
|
48
|
+
.def_static("get_dongl", &SimpleBLE::Backend::get_dongl, py::call_guard<py::gil_scoped_release>(), kDocsBackendGetDongl)
|
|
49
|
+
.def_static("get_simulator", &SimpleBLE::Backend::get_simulator, py::call_guard<py::gil_scoped_release>(), kDocsBackendGetSimulator)
|
|
50
|
+
.def("initialized", &SimpleBLE::Backend::initialized, py::call_guard<py::gil_scoped_release>(), kDocsBackendInitialized)
|
|
51
|
+
.def("adapters", &SimpleBLE::Backend::adapters, py::call_guard<py::gil_scoped_release>(), kDocsBackendAdapters)
|
|
52
|
+
.def("bluetooth_enabled", &SimpleBLE::Backend::bluetooth_enabled, py::call_guard<py::gil_scoped_release>(), kDocsBackendBluetoothEnabled)
|
|
53
|
+
.def("identifier", &SimpleBLE::Backend::identifier, py::call_guard<py::gil_scoped_release>(), kDocsBackendIdentifier);
|
|
54
54
|
}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
#include <pybind11/functional.h>
|
|
2
1
|
#include <pybind11/pybind11.h>
|
|
3
2
|
#include <pybind11/stl.h>
|
|
4
3
|
|
|
5
4
|
#include <memory>
|
|
5
|
+
#include <optional>
|
|
6
6
|
#include <set>
|
|
7
7
|
#include <string>
|
|
8
8
|
#include <vector>
|
|
9
9
|
|
|
10
10
|
#include "simpleble/local/Peripheral.h"
|
|
11
11
|
|
|
12
|
+
#include "python_callback.hpp"
|
|
13
|
+
|
|
12
14
|
namespace py = pybind11;
|
|
13
15
|
|
|
14
16
|
using SimpleBLE::Local::CharacteristicCapability;
|
|
@@ -209,35 +211,35 @@ void wrap_local(py::module& m) {
|
|
|
209
211
|
kDocsLocalCharacteristicSetValue)
|
|
210
212
|
.def(
|
|
211
213
|
"set_callback_on_read",
|
|
212
|
-
[](SimpleBLE::Local::Characteristic& c, std::
|
|
214
|
+
[](SimpleBLE::Local::Characteristic& c, std::optional<py::function> cb) {
|
|
213
215
|
if (!cb) {
|
|
214
216
|
c.set_callback_on_read(nullptr);
|
|
215
217
|
return;
|
|
216
218
|
}
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
return to_byte_array(
|
|
219
|
+
simplepyble::PythonCallback callback(std::move(*cb));
|
|
220
|
+
c.set_callback_on_read([callback]() {
|
|
221
|
+
return callback.call([](const py::function& callable) { return to_byte_array(callable()); });
|
|
220
222
|
});
|
|
221
223
|
},
|
|
222
224
|
py::call_guard<py::gil_scoped_release>(),
|
|
223
225
|
kDocsLocalCharacteristicSetCallbackOnRead)
|
|
224
226
|
.def(
|
|
225
227
|
"set_callback_on_write",
|
|
226
|
-
[](SimpleBLE::Local::Characteristic& c, std::
|
|
228
|
+
[](SimpleBLE::Local::Characteristic& c, std::optional<py::function> cb) {
|
|
227
229
|
if (!cb) {
|
|
228
230
|
c.set_callback_on_write(nullptr);
|
|
229
231
|
return;
|
|
230
232
|
}
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
233
|
+
simplepyble::PythonCallback callback(std::move(*cb));
|
|
234
|
+
c.set_callback_on_write([callback](SimpleBLE::ByteArray value) {
|
|
235
|
+
callback.deliver([&](const py::function& callable) { callable(py::bytes(value)); });
|
|
234
236
|
});
|
|
235
237
|
},
|
|
236
238
|
py::call_guard<py::gil_scoped_release>(),
|
|
237
239
|
kDocsLocalCharacteristicSetCallbackOnWrite)
|
|
238
|
-
.def("set_callback_on_subscribed", &SimpleBLE::Local::Characteristic::set_callback_on_subscribed,
|
|
240
|
+
.def("set_callback_on_subscribed", simplepyble::callback_setter(&SimpleBLE::Local::Characteristic::set_callback_on_subscribed),
|
|
239
241
|
py::call_guard<py::gil_scoped_release>(), kDocsLocalCharacteristicSetCallbackOnSubscribed)
|
|
240
|
-
.def("set_callback_on_unsubscribed", &SimpleBLE::Local::Characteristic::set_callback_on_unsubscribed,
|
|
242
|
+
.def("set_callback_on_unsubscribed", simplepyble::callback_setter(&SimpleBLE::Local::Characteristic::set_callback_on_unsubscribed),
|
|
241
243
|
py::call_guard<py::gil_scoped_release>(), kDocsLocalCharacteristicSetCallbackOnUnsubscribed);
|
|
242
244
|
|
|
243
245
|
py::class_<SimpleBLE::Local::Service, LocalHolder<SimpleBLE::Local::Service>>(m, "LocalService", kDocsLocalService)
|
|
@@ -287,9 +289,9 @@ void wrap_local(py::module& m) {
|
|
|
287
289
|
kDocsLocalPeripheralIsStarted)
|
|
288
290
|
.def("is_advertising", &SimpleBLE::Local::Peripheral::is_advertising, py::call_guard<py::gil_scoped_release>(),
|
|
289
291
|
kDocsLocalPeripheralIsAdvertising)
|
|
290
|
-
.def("set_callback_on_client_connected", &SimpleBLE::Local::Peripheral::set_callback_on_client_connected,
|
|
292
|
+
.def("set_callback_on_client_connected", simplepyble::callback_setter(&SimpleBLE::Local::Peripheral::set_callback_on_client_connected),
|
|
291
293
|
py::call_guard<py::gil_scoped_release>(), kDocsLocalPeripheralSetCallbackOnClientConnected)
|
|
292
|
-
.def("set_callback_on_client_disconnected", &SimpleBLE::Local::Peripheral::set_callback_on_client_disconnected,
|
|
294
|
+
.def("set_callback_on_client_disconnected", simplepyble::callback_setter(&SimpleBLE::Local::Peripheral::set_callback_on_client_disconnected),
|
|
293
295
|
py::call_guard<py::gil_scoped_release>(), kDocsLocalPeripheralSetCallbackOnClientDisconnected);
|
|
294
296
|
}
|
|
295
297
|
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
#include <pybind11/functional.h>
|
|
2
1
|
#include <pybind11/pybind11.h>
|
|
3
2
|
#include <pybind11/stl.h>
|
|
4
3
|
|
|
5
4
|
#include "simpleble/Peripheral.h"
|
|
6
5
|
|
|
6
|
+
#include "python_callback.hpp"
|
|
7
|
+
|
|
7
8
|
namespace py = pybind11;
|
|
8
9
|
|
|
9
10
|
constexpr auto kDocsPeripheral = R"pbdoc(
|
|
@@ -115,31 +116,34 @@ constexpr auto kDocsPeripheralSetCallbackOnDisconnected = R"pbdoc(
|
|
|
115
116
|
void wrap_peripheral(py::module& m) {
|
|
116
117
|
// TODO: Add __str__ and __repr__ methods
|
|
117
118
|
py::class_<SimpleBLE::Peripheral>(m, "Peripheral", kDocsPeripheral)
|
|
118
|
-
.def("initialized", &SimpleBLE::Peripheral::initialized, kDocsPeripheralInitialized)
|
|
119
|
-
.def("identifier", &SimpleBLE::Peripheral::identifier, kDocsPeripheralIdentifier)
|
|
120
|
-
.def("address", &SimpleBLE::Peripheral::address, kDocsPeripheralAddress)
|
|
121
|
-
.def("address_type", &SimpleBLE::Peripheral::address_type, kDocsPeripheralAddressType)
|
|
122
|
-
.def("rssi", &SimpleBLE::Peripheral::rssi, kDocsPeripheralRSSI)
|
|
123
|
-
.def("tx_power", &SimpleBLE::Peripheral::tx_power, kDocsPeripheralTxPower)
|
|
124
|
-
.def("mtu", &SimpleBLE::Peripheral::mtu, kDocsPeripheralMtu)
|
|
119
|
+
.def("initialized", &SimpleBLE::Peripheral::initialized, py::call_guard<py::gil_scoped_release>(), kDocsPeripheralInitialized)
|
|
120
|
+
.def("identifier", &SimpleBLE::Peripheral::identifier, py::call_guard<py::gil_scoped_release>(), kDocsPeripheralIdentifier)
|
|
121
|
+
.def("address", &SimpleBLE::Peripheral::address, py::call_guard<py::gil_scoped_release>(), kDocsPeripheralAddress)
|
|
122
|
+
.def("address_type", &SimpleBLE::Peripheral::address_type, py::call_guard<py::gil_scoped_release>(), kDocsPeripheralAddressType)
|
|
123
|
+
.def("rssi", &SimpleBLE::Peripheral::rssi, py::call_guard<py::gil_scoped_release>(), kDocsPeripheralRSSI)
|
|
124
|
+
.def("tx_power", &SimpleBLE::Peripheral::tx_power, py::call_guard<py::gil_scoped_release>(), kDocsPeripheralTxPower)
|
|
125
|
+
.def("mtu", &SimpleBLE::Peripheral::mtu, py::call_guard<py::gil_scoped_release>(), kDocsPeripheralMtu)
|
|
125
126
|
.def("connect", &SimpleBLE::Peripheral::connect, py::call_guard<py::gil_scoped_release>(),
|
|
126
127
|
kDocsPeripheralConnect)
|
|
127
128
|
.def("disconnect", &SimpleBLE::Peripheral::disconnect, py::call_guard<py::gil_scoped_release>(),
|
|
128
129
|
kDocsPeripheralDisconnect)
|
|
129
|
-
.def("is_connected", &SimpleBLE::Peripheral::is_connected, kDocsPeripheralIsConnected)
|
|
130
|
-
.def("is_connectable", &SimpleBLE::Peripheral::is_connectable, kDocsPeripheralIsConnectable)
|
|
131
|
-
.def("is_paired", &SimpleBLE::Peripheral::is_paired, kDocsPeripheralIsPaired)
|
|
132
|
-
.def("unpair", &SimpleBLE::Peripheral::unpair, kDocsPeripheralUnpair)
|
|
133
|
-
.def("services", &SimpleBLE::Peripheral::services, kDocsPeripheralServices)
|
|
130
|
+
.def("is_connected", &SimpleBLE::Peripheral::is_connected, py::call_guard<py::gil_scoped_release>(), kDocsPeripheralIsConnected)
|
|
131
|
+
.def("is_connectable", &SimpleBLE::Peripheral::is_connectable, py::call_guard<py::gil_scoped_release>(), kDocsPeripheralIsConnectable)
|
|
132
|
+
.def("is_paired", &SimpleBLE::Peripheral::is_paired, py::call_guard<py::gil_scoped_release>(), kDocsPeripheralIsPaired)
|
|
133
|
+
.def("unpair", &SimpleBLE::Peripheral::unpair, py::call_guard<py::gil_scoped_release>(), kDocsPeripheralUnpair)
|
|
134
|
+
.def("services", &SimpleBLE::Peripheral::services, py::call_guard<py::gil_scoped_release>(), kDocsPeripheralServices)
|
|
134
135
|
.def(
|
|
135
136
|
"manufacturer_data",
|
|
136
137
|
[](SimpleBLE::Peripheral& p) {
|
|
138
|
+
std::map<uint16_t, SimpleBLE::ByteArray> data = p.manufacturer_data();
|
|
139
|
+
py::gil_scoped_acquire gil;
|
|
137
140
|
std::map<uint16_t, py::bytes> ret;
|
|
138
|
-
for (auto& kv :
|
|
141
|
+
for (auto& kv : data) {
|
|
139
142
|
ret[kv.first] = py::bytes(kv.second);
|
|
140
143
|
}
|
|
141
144
|
return ret;
|
|
142
145
|
},
|
|
146
|
+
py::call_guard<py::gil_scoped_release>(),
|
|
143
147
|
kDocsPeripheralManufacturerData)
|
|
144
148
|
.def(
|
|
145
149
|
"read",
|
|
@@ -170,20 +174,20 @@ void wrap_peripheral(py::module& m) {
|
|
|
170
174
|
kDocsPeripheralWriteCommand)
|
|
171
175
|
.def(
|
|
172
176
|
"notify",
|
|
173
|
-
[](SimpleBLE::Peripheral& p, std::string service, std::string characteristic,
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
+
[](SimpleBLE::Peripheral& p, std::string service, std::string characteristic, py::function cb) {
|
|
178
|
+
simplepyble::PythonCallback callback(std::move(cb));
|
|
179
|
+
p.notify(service, characteristic, [callback](SimpleBLE::ByteArray payload) {
|
|
180
|
+
callback.deliver([&](const py::function& callable) { callable(py::bytes(payload)); });
|
|
177
181
|
});
|
|
178
182
|
},
|
|
179
183
|
py::call_guard<py::gil_scoped_release>(),
|
|
180
184
|
kDocsPeripheralNotify)
|
|
181
185
|
.def(
|
|
182
186
|
"indicate",
|
|
183
|
-
[](SimpleBLE::Peripheral& p, std::string service, std::string characteristic,
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
+
[](SimpleBLE::Peripheral& p, std::string service, std::string characteristic, py::function cb) {
|
|
188
|
+
simplepyble::PythonCallback callback(std::move(cb));
|
|
189
|
+
p.indicate(service, characteristic, [callback](SimpleBLE::ByteArray payload) {
|
|
190
|
+
callback.deliver([&](const py::function& callable) { callable(py::bytes(payload)); });
|
|
187
191
|
});
|
|
188
192
|
},
|
|
189
193
|
py::call_guard<py::gil_scoped_release>(),
|
|
@@ -209,10 +213,10 @@ void wrap_peripheral(py::module& m) {
|
|
|
209
213
|
},
|
|
210
214
|
kDocsPeripheralDescriptorWrite)
|
|
211
215
|
|
|
212
|
-
.def("set_callback_on_connected", &SimpleBLE::Peripheral::set_callback_on_connected,
|
|
213
|
-
py::call_guard<py::gil_scoped_release>(),
|
|
214
|
-
.def("set_callback_on_disconnected", &SimpleBLE::Peripheral::set_callback_on_disconnected,
|
|
215
|
-
py::call_guard<py::gil_scoped_release>(),
|
|
216
|
+
.def("set_callback_on_connected", simplepyble::callback_setter(&SimpleBLE::Peripheral::set_callback_on_connected),
|
|
217
|
+
py::call_guard<py::gil_scoped_release>(), kDocsPeripheralSetCallbackOnConnected)
|
|
218
|
+
.def("set_callback_on_disconnected", simplepyble::callback_setter(&SimpleBLE::Peripheral::set_callback_on_disconnected),
|
|
219
|
+
py::call_guard<py::gil_scoped_release>(), kDocsPeripheralSetCallbackOnDisconnected);
|
|
216
220
|
}
|
|
217
221
|
|
|
218
222
|
// clang-format on
|
simplepyble-1.2.1.dev106/VERSION
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1.2.1-dev106
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|