You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@objc.typedSelector(b"v@:@^vQ")defrfcommChannelData_data_length_(self, channel, data, length):
print(f"DATA::{data}")
@objc.typedSelector(b'v@:@@I')defrfcommChannelWriteComplete_refcon_status_(self, rfcommChannel, refcon, status):
ifstatus==0: # kIOReturnSuccessprint("Data sent successfully.")
else:
print("Failed to send data.")
I've tried a lot of way, rfcomm channel can connect and open successfully, also I can send the data to my device and get the call back in delegate method(rfcommChannelWriteComplete_refcon_status_), but the read data always failed, I don't know how to trigger the rfcommChannelData_data_length_ method, am I miss something?
The text was updated successfully, but these errors were encountered:
Realbuber
changed the title
Question about IOBluetooth
Question about delegate(IOBluetooth)
Jul 1, 2024
sorry I am a begineer here,
I've tried a lot of way, rfcomm channel can connect and open successfully, also I can send the data to my device and get the call back in delegate method(rfcommChannelWriteComplete_refcon_status_), but the read data always failed, I don't know how to trigger the rfcommChannelData_data_length_ method, am I miss something?
The text was updated successfully, but these errors were encountered: