An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# Perfect-libMosquitto [简体中文](README.zh_CN.md)



Get Involed with Perfect!



Star Perfect On Github


Stack Overflow


Follow Perfect on Twitter


Join the Perfect Slack



Swift 3.0


Platforms OS X | Linux


License Apache


PerfectlySoft Twitter


Slack Status

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).