(self, bt_address, port=0)
| 3035 | """read/write packets on a connected RFCOMM socket""" |
| 3036 | |
| 3037 | def __init__(self, bt_address, port=0): |
| 3038 | s = socket.socket(socket.AF_BLUETOOTH, socket.SOCK_RAW, |
| 3039 | socket.BTPROTO_RFCOMM) |
| 3040 | s.connect((bt_address, port)) |
| 3041 | self.ins = self.outs = s |
| 3042 | |
| 3043 | |
| 3044 | class BluetoothHCISocket(SuperSocket): |