Skip to content

AlbanPerli/USBBridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

USBBridge

Swift wrapper based on https://github.com/rsms/peertalk

Use the iOS device's USB port to communicate via TCP protocol

Mac Os server:

https://github.com/rsms/peertalk

Python server

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:

Connect to server via USB

 USBBridge.shared.connect {

 }

Received Message via USB

USBBridge.shared.receivedMessage({ (str) in
   print("Received \(str)")
})

Send Message via USB

USBBridge.shared.send("My Message") { (err) in
                
}

Disconnect

USBBridge.shared.disconnect()

About

Use the iOS device's USB port to communicate via TCP protocol

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published