Swift wrapper based on https://github.com/rsms/peertalk
Use the iOS device's USB port to communicate via TCP protocol
https://github.com/rsms/peertalk
https://github.com/davidahouse/peertalk-python/blob/master/peertalk.py
See: https://makezine.com/2013/04/22/peertalk-beaglebone-and-raspberry-pi/
Communicate via USB:
USBBridge.shared.connect {
}
USBBridge.shared.receivedMessage({ (str) in
print("Received \(str)")
})
USBBridge.shared.send("My Message") { (err) in
}
USBBridge.shared.disconnect()