Skip to content

SmallLars/coap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gem Version Dependency Status Build Status Coverage Status Code Climate

Gem CoAP

Ruby Gem for RFC 7252 - Constrained Application Protocol (CoAP)
Based on code by Carsten Bormann

The Constrained Application Protocol (CoAP) is a specialized web transfer protocol for use with constrained nodes and constrained (e.g., low-power, lossy) networks. The nodes often have 8-bit microcontrollers with small amounts of ROM and RAM, while constrained networks such as 6LoWPAN often have high packet error rates and a typical throughput of 10s of kbit/s. The protocol is designed for machine-to-machine (M2M) applications such as smart energy and building automation.

Implemented Version: RFC (http://tools.ietf.org/html/rfc7252)

Additionally implemented:

Install

Add this line to your application's Gemfile:

gem 'coap'

And then execute:

$ bundle

Or install it yourself as:

$ gem install coap

Usage

In your ruby/rails application

client = CoAP::Client.new
answer = client.get('coap.me', 5683, '/hello')
p answer.payload

Lot's of examples are stored in test/test_client.rb
Code is commented in rdoc format

Command Line Client (very limited)

./client get coap://coap.me:5683/.well-known/core

Testing

rake test

Copyright

Copyright (C) 2014 Simon Frerichs. See LICENSE.txt for further details.
Based on code by Carsten Bormann

About

Ruby Gem for RFC 7252 - Constrained Application Protocol (CoAP)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages