简体   繁体   中英

Configure MQTT Broker for iOS

I am working on a home automation application for iOS. For home automation I want to use MQTT along with Quel. But I am unable to figure it out how I install and configure MQTT Broker/Server. Also how do I create topics or get list of all devices.

Easiest place to start is probably with the Mosquitto broker, there are pre-built binaries for most platform available on the download page:

http://mosquitto.org/download/

As for topics, you don't configure them on the broker, they are created on the fly as clients publish or subscribe to them. The only configuration you may want to look at is setting up ACLs for specific topic trees to control which clients can subscribe/publish to.

You don't normally need a list of connected clients, but if you need them look at the admin topics that are kept under $SYS/broker/clients/# sub tree

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM