{"id":16214802,"url":"https://github.com/lecrapouille/mqtt","last_synced_at":"2026-04-26T22:31:54.021Z","repository":{"id":201070328,"uuid":"631693899","full_name":"Lecrapouille/MQTT","owner":"Lecrapouille","description":"[Lib][Version 0.2.0][Functional] MQTT Client (wrapper on the mosquitto lib)","archived":false,"fork":false,"pushed_at":"2024-07-17T22:31:04.000Z","size":28,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T22:34:35.928Z","etag":null,"topics":["mosquitto","mqtt","mqtt-client"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Lecrapouille.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-23T20:20:55.000Z","updated_at":"2024-07-17T22:31:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"13ce6357-af29-438e-9ce2-976b6ba6bdf7","html_url":"https://github.com/Lecrapouille/MQTT","commit_stats":null,"previous_names":["lecrapouille/mqtt"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Lecrapouille/MQTT","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lecrapouille%2FMQTT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lecrapouille%2FMQTT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lecrapouille%2FMQTT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lecrapouille%2FMQTT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lecrapouille","download_url":"https://codeload.github.com/Lecrapouille/MQTT/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lecrapouille%2FMQTT/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32315711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T21:09:39.134Z","status":"ssl_error","status_checked_at":"2026-04-26T21:09:21.240Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mosquitto","mqtt","mqtt-client"],"created_at":"2024-10-10T11:13:02.326Z","updated_at":"2026-04-26T22:31:53.989Z","avatar_url":"https://github.com/Lecrapouille.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MQTT: Class wrapping MQTT mosquitto\n\nA C++11 tiny wrapper class for a MQTT client based on the mosquitto implementation.\nYou will need small code to make your application running with a MQTT client.\n\n- See https://github.com/eclipse/mosquitto\n- See https://www.howtoforge.com/how-to-install-mosquitto-mqtt-message-broker-on-debian-11/\n\n## Hello World example\n\n- In a first Linux console, a subscriber will echo messages from our application. Type:\n```\nmosquitto_sub -h localhost -t \"Output\"\n```\n\n- In a second Linux console, compile and launch our application. Type:\n\n```\ncd example\ng++ --std=c++11 -Wall -Wextra -I../include ../src/MQTT.cpp Example.cpp -o example `pkg-config --cflags --libs libmosquitto`\n./example\n```\n\nYou will see (may be different from your case):\n```\nConnected to MQTT broker with error code 0\nTopic 1 subscribed. Granted QOS: 0\n```\n\n- In a third Linux console, a publisher will send messages to our application. Type:\n```\nmosquitto_pub -h localhost -t \"Input\" -m \"Hello\"\n```\n\nYou will see:\n- In the first console:\n```\nHello back\n```\n\n- In the second console:\n```\nReceived message 0: \"Hello\" from topic: \"Input\" size: 5 qos: 0\nMessage 2 published\n```\n\nYour C++ asynchronous MQTT client is functional :)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flecrapouille%2Fmqtt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flecrapouille%2Fmqtt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flecrapouille%2Fmqtt/lists"}