Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

连接成功后怎么发送数据呢? #221

Open
hzhh110 opened this issue Dec 18, 2019 · 0 comments
Open

连接成功后怎么发送数据呢? #221

hzhh110 opened this issue Dec 18, 2019 · 0 comments

Comments

@hzhh110
Copy link

hzhh110 commented Dec 18, 2019

[self.baby setBlockOnConnected:^(CBCentralManager *central, CBPeripheral *peripheral) {
NSLog(@"设备:%@--连接成功",peripheral.name);
weakSelf.linkState = BluetoothLinkState_Successful;
if ([weakSelf.delegate respondsToSelector:@selector(MyBluetoothToolLink:)]) {
[weakSelf.delegate MyBluetoothToolLink:BluetoothLinkState_Successful];
NSLog(@"")
weakSelf.currentPeripheral = peripheral;
}
//停止扫描
[weakSelf.baby cancelScan];
}];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant