-
Notifications
You must be signed in to change notification settings - Fork 2
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
feature/core-bluetooth #52
Conversation
if let char = characteristics?.first(where: { $0.uuid == CoreBluetoothTransport.receiveCharacteristicUUID }) { | ||
peripherals[id] = (peripheral, char) | ||
peripherals[id]?.peripheral.setNotifyValue(true, for: char) | ||
peers.append(Peer(id: id, services: [UBID]())) // @TODO SERVICES |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODOs should be resolved (SERVICES).
if let char = characteristics?.first(where: { $0.uuid == CoreBluetoothTransport.receiveCharacteristicUUID }) { | ||
peripherals[id] = (peripheral, char) | ||
peripherals[id]?.peripheral.setNotifyValue(true, for: char) | ||
peers.append(Peer(id: id, services: [UBID]())) // @todo we may need to do some handshake to obtain services from a peer. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line should be 120 characters or less: currently 132 characters
if sends > 0 { | ||
return | ||
} | ||
} | ||
} | ||
|
||
_ = send(message, transport: transport, peers: peers) | ||
_ = send(message, data: data, transport: transport, peers: peers) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
message type?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:)
Code Climate has analyzed commit 6070337 and detected 0 issues on this pull request. View more on Code Climate. |
Bi-directional message sending is working. Need to write more tests and test for multiple devices.
Relevant issues:
closes #25
closes #26