Get Mac Address
Mac address model description
- IDOGetMacAddrInfoBluetoothModel
Parameter | Description | Notes |
---|---|---|
macAddr | Mac address | str |
btMacAddr | BT Mac address | str |
Command code
Objc:
[IDOFoundationCommand getMacAddrCommand:^(int errorCode, IDOGetMacAddrInfoBluetoothModel * _Nullable data) {
if (errorCode == 0) {
//get success
}else if (errorCode == 6) {
//device not supported
}else {
//get failed
}
}];
Swift:
IDOFoundationCommand.getMacAddrCommand { (errorCode, model) in
if errorCode == 0 {
//get success
}else if errorCode == 6 {
//device not supported
}else {
//get failed.
}
};