To run the example project, clone the repo, and run
pod install from the Example directory first.
Have WebIOPi running on your raspberry
sudo webiopi -d -c /etc/webiopi/config
SwiftPi is available through CocoaPods. To install it, simply add the following line to your Podfile:
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)
sbaidon, ardzoht, toniohdez43, PkBadger
SwiftPi is available under the MIT license. See the LICENSE file for more info.