SwiftPi
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
Requirements
Have WebIOPi running on your raspberry
Download: http://webiopi.trouch.com/
sudo webiopi -d -c /etc/webiopi/config
Installation
SwiftPi is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "SwiftPi"
How to use
var swiftPi = SwifPi(username: "username", password: "password", ip:"ip", port: "port")
var mode = swifPi.getMode(.ONE)
swiftPi.setMode(.ONE, .IN)
var value = swiftPi.getValue(.ONE)
swiftPi.setValue(.ONE, .ON)
Author
sbaidon, ardzoht, toniohdez43, PkBadger
License
SwiftPi is available under the MIT license. See the LICENSE file for more info.