Get MTU
Function table
__IDO_FUNCTABLE__.funcTable23Model.longMtu
MTU Model Description
- IDOGetMtuBlueInfoModel
Parameter | Description | Notes |
---|---|---|
sendMtu | Maximum length of bluetooth data transmission | Default: 20 |
receiveMtu | Bluetooth data receiving maximum length | Default: 20 |
Command code
Objc:
[IDOFoundationCommand getMtuInfoCommand:^(int errorCode, IDOGetMtuBlueInfoModel * _Nullable data) {
if (errorCode == 0) {
//get success
}else if (errorCode == 6) {
//device not supported
}else {
//get failed
}
}];
Swift:
IDOFoundationCommand.getMtuInfoCommand{ (errorCode, model) in
if errorCode == 0 {
//get success
}else if errorCode == 6 {
//device not supported
}else {
//get failed.
}
};