mqtt_crystal
Version, currently master branch1 version
- master branchlatestOct 13, 2019
github.com/lcc-321/mqtt_crystal
MQTT Crystal client
15 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
mqtt_crystal:
github: lcc-321/mqtt_crystal
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.24.2- License
- MIT
- Author
- Liu Chong <liuchong@mail.com>
Dependencies
This version declares no dependencies.
README
# mqtt_crystal [](https://travis-ci.org/liu-chong/mqtt_crystal)
pure crystal mqtt client
## Installation
Add this to your application's `shard.yml`:
```yaml
dependencies:
mqtt_crystal:
github: liu-chong/mqtt_crystal
branch: master
```
## Usage
```crystal
require "mqtt_crystal"
# host, port, username, password or url
client = MqttCrystal::Client.new(url: "mqtt://iot.eclipse.org") # mqtt://user:password@iot.eclipse.org:1883
spawn {
999.times { |i|
sleep rand.seconds
client.publish("lccc/teeest/topiiic", "test #{i} payload xxxxyyyyyy")
}
}
client.get("lccc/teeest/#") { |t, m|
puts "#{t}, #{m}"
}
```
## Development
git clone https://github.com/liu-chong/mqtt_crystal.git
cd mqtt_crystal
crystal spec
## Contributing
1. Fork it ( https://github.com/liu-chong/mqtt_crystal/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
## Contributors
- [[liu-chong]](https://github.com/liu-chong) Liu Chong - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Oct 13, 2019
- Crystal
0.24.2- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/lcc-321/mqtt_crystal
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 12, 2026
- Synced
- Aug 12, 2026
- Versions
- 1