Skip to content
This repository was archived by the owner on Oct 19, 2025. It is now read-only.

shurikk/xbee

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XBee Library

port of https://pypi.python.org/pypi/XBee

Installation

$ gem install xbee

Documentation

Tools & Resources

X-CTU alternatives

Example

require 'xbee'
require 'serialport'

serial = SerialPort.new "/dev/tty.usbserial-A95L5ZJN", 9600
client = Xbee::ZigBee.new(serial, :escaped => true)

Thread.new do
  while true do
    frame = client.wait_read_frame
    p frame
  end
end

%w(id my ni dd ch op pl).each do |cmd|
  client.at(:command => cmd)
  sleep 1
end

Contributors

About

xbee library for ruby

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages