Skip to content
/ zanzara Public

Allocation-free, I/O-agnostic MQTT client written in Zig

License

Notifications You must be signed in to change notification settings

rbino/zanzara

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zanzara

An allocation-free, I/O-agnostic MQTT client written in Zig.

Warning: this is a work in progress, the API is subject to change

Features

  • MQTT 3.1.1 client packet serialization/deserialization
  • Ping handling
  • Subscribe and receive data
  • Publish (QoS 0 only)
  • Unsubscribe
  • Everything else (including a more detailed list of what's missing)

Example

You can run the example with:

zig run example.zig

You can use mosquitto_sub to see the message that is published by the example just after the connection

mosquitto_sub -h "mqtt.eclipseprojects.io" -t "zig/zanzara_out"

You can use also mosquitto_pub to publish to the topic the example subscribes to

mosquitto_pub -h "mqtt.eclipseprojects.io" -t "zig/zanzara_in" -m "Hello, MQTT"

About

Allocation-free, I/O-agnostic MQTT client written in Zig

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages