Home | History | Annotate | Download | only in bluetooth

Lines Matching refs:mtu

31     def __init__(self, mtu=BT_ATT_DEFAULT_LE_MTU):
32 self.mtu = max(mtu, BT_ATT_DEFAULT_LE_MTU)
42 """Handle exchange MTU request.
44 Exchange MTU request/response usually initiates client-server
45 communication. The method sends exchange MTU response back to client.
46 It also sets value for MTU attribute.
53 'Invalid MTU size: expected 2 bytes for Exchange MTU Request')
57 raise BluetoothGATTServerError('Invalid MTU size: %d < %d' %
60 self.mtu = min(client_rx_mtu, self.mtu)
62 response = struct.pack('<BH', BT_ATT_OP_MTU_RSP, self.mtu)
74 data = self.recv(self.mtu)