zhaojh329 / libumqtt

A Lightweight and fully asynchronous MQTT client C library based on libev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Where is the documentation?

theAkito opened this issue · comments

commented

I am trying to implement libumqtt within a server written in Nim. I am not familiar with C, but I know how to use C libraries within Nim. To implement this type of libraries correctly, I need documentation on how the library works and what the procedures do in what way. Is there a way to generate documentation from this library or is there documentation I have missed, yet?

Please reference the example.

commented

@zhaojh329 Well, I want the server to auto-subscribe to a topic with a specific name. Then, after successful subscription, I want the server to listen for incoming requests originating from the topic. So, taking this case as an example, what do I need to call from the library to make this happen?

libumqtt is a client library.

commented

@zhaojh329
Every subscriber is a client, I assume? The main purpose for it being a server is that it runs all the time. Technically, it is still a client, since it is supposed to receive messages and not send them.

Here is what is supposed to happen:

  1. Server listening.
  2. Server gets message "print this comment".
  3. Server prints the comment.
  4. Done.