Lines Matching refs:ble
97 multitest.globals(BDADDR=ble.config("mac"))
98 ((char_handle,),) = ble.gatts_register_services(SERVICES)
99 ble.gatts_set_buffer(char_handle, 500, False)
101 ble.gap_advertise(20_000, b"\x02\x01\x06\x04\xffMPY")
106 ble.config(mtu=200)
108 ble.config(mtu=400)
110 ble.config(mtu=50)
112 ble.config(mtu=290)
115 ble.config(mtu=256)
122 ble.gattc_exchange_mtu(conn_handle)
127 ble.gatts_notify(conn_handle, char_handle, str(i) * 64)
133 data = ble.gatts_read(char_handle)
140 ble.gap_advertise(20_000, b"\x02\x01\x06\x04\xffMPY")
143 ble.active(0)
152 ble.config(mtu=300)
154 ble.config(mtu=190)
156 ble.config(mtu=350)
158 ble.config(mtu=256)
164 ble.gap_connect(BDADDR[0], BDADDR[1], 5000)
169 ble.gattc_exchange_mtu(conn_handle)
176 ble.gattc_discover_characteristics(conn_handle, 1, 65535)
182 ble.gattc_write(conn_handle, value_handle, chr(ord("a") + i) * (mtu + 20), 1)
186 print("gap_disconnect:", ble.gap_disconnect(conn_handle))
189 ble.active(0)
192 ble = bluetooth.BLE() variable
193 ble.active(1)
194 ble.irq(irq)