coap
Version, currently 1.1.02 versions
- 1.2.0latestJul 29, 2023
- 1.1.0not indexedMar 31, 2026
github.com/spider-gazelle/coap
CoAP protocol support for Crystal Lang
Nothing has been indexed for 1.1.0 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
coap:
github: spider-gazelle/coap
version: ~> 1.1.0Then run:
shards installshard.yml
No shard.yml has been indexed for 1.1.0. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
Crystal Lang CoAP Protocol
Communicate with IoT devices supporting CoAP
Installation
-
Add the dependency to your
shard.yml:dependencies: coap: github: spider-gazelle/coap -
Run
shards install
Usage
require "coap"
# client has similar semantics to HTTP::Client
client = CoAP::Client.new(URI.parse("coap://coap.me"))
# requests inherit from HTTP::Request so work the same way
request = CoAP::Request.new("get", "/test")
# use client.exec! to send a request, it returns a channel for obtaining responses
# this is because you can multi-cast requests and each device will send a response
response_channel = client.exec!(request)
# you might only be expecting a single response
response = response_channel.receive
response.status_code # => 205
response.headers["Content-Format"] # => "text/plain"
response.body # => "welcome to the ETSI plugtest!"
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
1.1.0- Tagged
- Mar 31, 2026
- Commit
9a39486edeab- Indexed
- not yet
Dependents
No indexed shard depends on this one yet.
Repository
github.com/spider-gazelle/coap
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 14, 2026
- Synced
- Aug 14, 2026
- Versions
- 2