0
Pysense(WiPy)デバイスは、市販されている他のBluetooth Sensorデバイスに接続してサービスを提供しますか?WiPy Pysenseデバイスは他のBluetoothセンサーデバイスと接続しますか?
Pysense(WiPy)デバイスは、市販されている他のBluetooth Sensorデバイスに接続してサービスを提供しますか?WiPy Pysenseデバイスは他のBluetoothセンサーデバイスと接続しますか?
はい、私たちは
bluetooth = Bluetooth()
bluetooth.start_scan(5)
while bluetooth.isscanning():
adv = bluetooth.get_adv()
if adv:
if(str(binascii.hexlify(adv.mac).decode()) == '78a50454b267'):
conn = bluetooth.connect(adv.mac)
print(type(conn))
を使用してMACアドレスを持つすべてのBluetoothセンサーを接続することができます