https://github.com/perfectlysoft/perfect-libmosquitto
C library of Mosquitto (MQTT client) for Swift
https://github.com/perfectlysoft/perfect-libmosquitto
mosquitto mqtt mqtt-client
Last synced: 4 months ago
JSON representation
C library of Mosquitto (MQTT client) for Swift
- Host: GitHub
- URL: https://github.com/perfectlysoft/perfect-libmosquitto
- Owner: PerfectlySoft
- License: apache-2.0
- Created: 2017-03-09T17:30:16.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-09T17:29:59.000Z (over 7 years ago)
- Last Synced: 2025-05-25T12:01:57.066Z (4 months ago)
- Topics: mosquitto, mqtt, mqtt-client
- Language: Swift
- Size: 8.79 KB
- Stars: 4
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Perfect-libMosquitto [简体中文](README.zh_CN.md)
This project imports the Mosquitto C API client into Swift.
This package builds with Swift Package Manager and is part of the [Perfect](https://github.com/PerfectlySoft/Perfect) project and should not be manually cloned.
Ensure you have installed and activated the latest Swift 3.0 tool chain.
## OS X Notes
### Homebrew Installation
This project depends on mosquitto library. To install on mac OS, try command `brew`:
```
$ brew install mosquitto
```### PC File
A package configuration file is needed, for example, `/usr/local/lib/pkgconfig/mosquitto.pc` as below:
```
Name: mosquitto
Description: Mosquitto Client Library
Version: 1.4.11
Requires:
Libs: -L/usr/local/lib -lmosquitto
Cflags: -I/usr/local/include
```Please also export an environmental variable called `$PKG_CONFIG_PATH`:
```
$ export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:/usr/lib/pkgconfig"
```## Linux Notes
This project depends on Ubuntu 16.04 library `libmosquitto-dev`:
```
$ apt-get libmosquitto-dev
```## Further Information
For more information on the Perfect project, please visit [perfect.org](http://perfect.org).