Skip to content
Michael Murton edited this page Oct 13, 2019 · 9 revisions

MQTTany aims to make it easier to connect things to an MQTT broker. It is a collection of modules that each provide support for connecting something.

Get started on the Installation page or download the latest Release.

Modules

GPIO

Allows you to control GPIO pins on single board computers.
Supported boards:

  • Raspberry Pi - all up to 3B+ should work, but not all have been tested.
  • Odroid - C1, C1+, C2, XU3, XU4, and N2 should work, but not all have been tested.

MCP230xx

Provides access to MCP23017 and MCP23008 devices over I2C.
Supported boards:

  • Raspberry Pi - any up to 3B+ with the 40-pin header should work, but not all have been tested.

OneWire

Provides access to Dallas OneWire devices using the w1 kernel module. OWFS support is planned.
Supported devices:

  • Temperature sensors - DS18B20, DS18S20, DS1822, DS1825, and DS28EA00.

LED

Provides control of WS281x and similar LEDs through animation scripts.

Supported Interfaces:

  • Raspberry Pi via SPI, PWM, or PCM depending on board

Supported LEDs:

  • WS2811, WS2812, WS2812B, SK6812, SK6812W

Note

If you are using a Python version older than 3.5.4 you may see errors like the one shown below. This is a Python bug that can be fixed by upgrading to Python 3.5.4 or higher.

Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0x7fc874a876a8>
Traceback (most recent call last):
File "/usr/lib/python3.5/weakref.py", line 117, in remove
TypeError: 'NoneType' object is not callable



Copyright (c) 2019 MQTTany contributors

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Clone this wiki locally