{"id":21505508,"url":"https://github.com/ibm-messaging/mqtt-ios-sample","last_synced_at":"2025-07-16T00:32:26.179Z","repository":{"id":17094334,"uuid":"19859648","full_name":"ibm-messaging/mqtt-ios-sample","owner":"ibm-messaging","description":"Sample iOS app using MQTT","archived":false,"fork":false,"pushed_at":"2015-03-06T14:31:05.000Z","size":1087,"stargazers_count":34,"open_issues_count":2,"forks_count":19,"subscribers_count":46,"default_branch":"master","last_synced_at":"2023-08-12T16:11:11.184Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ibm-messaging.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-16T14:38:14.000Z","updated_at":"2023-02-23T23:10:21.000Z","dependencies_parsed_at":"2022-09-15T00:13:26.649Z","dependency_job_id":null,"html_url":"https://github.com/ibm-messaging/mqtt-ios-sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibm-messaging%2Fmqtt-ios-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibm-messaging%2Fmqtt-ios-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibm-messaging%2Fmqtt-ios-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibm-messaging%2Fmqtt-ios-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ibm-messaging","download_url":"https://codeload.github.com/ibm-messaging/mqtt-ios-sample/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226084431,"owners_count":17571155,"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-11-23T19:05:32.282Z","updated_at":"2024-11-23T19:05:32.946Z","avatar_url":"https://github.com/ibm-messaging.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"mqtt-ios-sample\r\n===============\r\nMQTT iOS Sample is an application that provides a user the ability to publish and subscribe to MQTT topics from their iOS device.\r\n\r\nThis project depends on the iOS MQTT Client library included in the [IBM WebSphere Mobile Messaging and M2M Client Pack](https://www.ibm.com/developerworks/community/blogs/c565c720-fe84-4f63-873f-607d87787327/entry/download?lang=en). \r\nSetup\r\n-----\r\nAfter downloading the client pack from the link above, unzip it and go to `SDK/clients/iOS/` and copy `libiosMQTT.a` and `MqttOCClient.h` into your XCode project. \r\n![MQTT iOS Sample Folder](images/mqtt-ios-sample%20folder.png)\r\n\r\nOnce the files have been added to the project, ensure that they are included in the `Library Search Paths` and `Header Search Paths` properties of the project. These properties can be found by selecting the project in XCode and going to `Build Settings`.\r\n![XCode Build Settings](images/xcode.png)\r\n\r\nConnect\r\n-------\r\nThe connect view specifies the connection options for connecting to the MQTT broker. The options include server, port, and CleanSession.\r\n\r\nPublish\r\n-------\r\nThe publish view allows the user to send an MQTT message to a specified topic. The Quality of Service (QoS) and Retained flag can also be set on the message.\r\n\r\nSubscribe\r\n---------\r\nThe subscribe view allows the user to subscribe to a specified MQTT topic filter. The QoS can also be set for the subscription.\r\n\r\nLog\r\n---\r\nThe log view displays information messages about the application. These messages include connecting and disconnecting, publishing, subscribing, and receiving messages.\r\n\r\nIf you have any comments or suggestions for improvements, please create an Issue or better yet submit a Pull Request. If you do submit a Pull Request please indicate in the Pull Request that you accept and agree to be bound by the terms of the IBM Contributor License Agreement that can be found in the CLA.md file in the repository.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibm-messaging%2Fmqtt-ios-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fibm-messaging%2Fmqtt-ios-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibm-messaging%2Fmqtt-ios-sample/lists"}