Sha256: 9d31b1df968eccc43aa61128b7ef6cb443a8f7d90911e63e9375294d848ccebc
Contents?: true
Size: 1014 Bytes
Versions: 2
Compression:
Stored size: 1014 Bytes
Contents
# Net::PNS protocol handler of PNS commands for PATLITE NH-FV series See: https://www.patlite.jp/download/NH-FV-ManualT95100208-C.pdf ## Installation Add this line to your application's Gemfile: ```ruby gem 'net-pns' ``` And then execute: $ bundle Or install it yourself as: $ gem install net-pns ## Usage ```ruby require 'net/pns' Net::PNS.new(192.168.0.10, 10000) do |patlite| patlite.light({red: :blink1, yellow: :on, green: :blink2}) puts patlite.stat #=> [2, 1, 3, 0, 0, 0] sleep 10 patlite.clear puts patlite.stat #=> [0, 0, 0, 0, 0, 0] end patlite = Net::PNS.new(192.168.0.10) patlite.light({buzzer: :buzz1}) #=> buzzer start sleep 3 patlite.clear #=> buzzer stop after 3sec patlite.close ``` ## Contributing 1. Fork it ( https://github.com/tdtds/net-pns/fork ) 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create a new Pull Request
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
net-pns-1.0.0 | README.md |
net-pns-0.0.1 | README.md |