{"id":13607132,"url":"https://github.com/knolleary/pubsubclient","last_synced_at":"2025-05-14T09:09:10.674Z","repository":{"id":493305,"uuid":"119789","full_name":"knolleary/pubsubclient","owner":"knolleary","description":"A client library for the Arduino Ethernet Shield that provides support for MQTT.","archived":false,"fork":false,"pushed_at":"2024-08-14T18:45:49.000Z","size":313,"stargazers_count":3903,"open_issues_count":561,"forks_count":1487,"subscribers_count":210,"default_branch":"master","last_synced_at":"2025-04-01T23:20:51.898Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://pubsubclient.knolleary.net/","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/knolleary.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.txt","contributing":null,"funding":null,"license":"LICENSE.txt","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":"2009-02-02T11:07:58.000Z","updated_at":"2025-03-31T15:34:05.000Z","dependencies_parsed_at":"2023-07-05T15:02:35.837Z","dependency_job_id":"1f7915e8-6c85-4866-99b2-2cfe73eee4ee","html_url":"https://github.com/knolleary/pubsubclient","commit_stats":{"total_commits":158,"total_committers":39,"mean_commits":4.051282051282051,"dds":"0.49367088607594933","last_synced_commit":"2d228f2f862a95846c65a8518c79f48dfc8f188c"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knolleary%2Fpubsubclient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knolleary%2Fpubsubclient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knolleary%2Fpubsubclient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knolleary%2Fpubsubclient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knolleary","download_url":"https://codeload.github.com/knolleary/pubsubclient/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247949459,"owners_count":21023327,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-08-01T19:01:15.833Z","updated_at":"2025-04-09T00:29:56.899Z","avatar_url":"https://github.com/knolleary.png","language":"C++","readme":"# Arduino Client for MQTT\n\nThis library provides a client for doing simple publish/subscribe messaging with\na server that supports MQTT.\n\n## Examples\n\nThe library comes with a number of example sketches. See File \u003e Examples \u003e PubSubClient\nwithin the Arduino application.\n\nFull API documentation is available here: https://pubsubclient.knolleary.net\n\n## Limitations\n\n - It can only publish QoS 0 messages. It can subscribe at QoS 0 or QoS 1.\n - The maximum message size, including header, is **256 bytes** by default. This\n   is configurable via `MQTT_MAX_PACKET_SIZE` in `PubSubClient.h` or can be changed\n   by calling `PubSubClient::setBufferSize(size)`.\n - The keepalive interval is set to 15 seconds by default. This is configurable\n   via `MQTT_KEEPALIVE` in `PubSubClient.h` or can be changed by calling\n   `PubSubClient::setKeepAlive(keepAlive)`.\n - The client uses MQTT 3.1.1 by default. It can be changed to use MQTT 3.1 by\n   changing value of `MQTT_VERSION` in `PubSubClient.h`.\n\n\n## Compatible Hardware\n\nThe library uses the Arduino Ethernet Client api for interacting with the\nunderlying network hardware. This means it Just Works with a growing number of\nboards and shields, including:\n\n - Arduino Ethernet\n - Arduino Ethernet Shield\n - Arduino YUN – use the included `YunClient` in place of `EthernetClient`, and\n   be sure to do a `Bridge.begin()` first\n - Arduino WiFi Shield - if you want to send packets \u003e 90 bytes with this shield,\n   enable the `MQTT_MAX_TRANSFER_SIZE` define in `PubSubClient.h`.\n - Sparkfun WiFly Shield – [library](https://github.com/dpslwk/WiFly)\n - TI CC3000 WiFi - [library](https://github.com/sparkfun/SFE_CC3000_Library)\n - Intel Galileo/Edison\n - ESP8266\n - ESP32\n\nThe library cannot currently be used with hardware based on the ENC28J60 chip –\nsuch as the Nanode or the Nuelectronics Ethernet Shield. For those, there is an\n[alternative library](https://github.com/njh/NanodeMQTT) available.\n\n## License\n\nThis code is released under the MIT License.\n","funding_links":[],"categories":["Interfaces","C++","Libraries","Protocol Library"],"sub_categories":["Makers","MQTT"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknolleary%2Fpubsubclient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknolleary%2Fpubsubclient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknolleary%2Fpubsubclient/lists"}