MQTT pack for SWI-Prolog
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
c
examples
lib
prolog
LICENSE
Makefile
README.md
pack.pl

README.md

SWI-Prolog Mosquitto MQTT Pack

This pack uses mosquitto library in the foreign code to add MQTT functionality to SWI-Prolog.

Supported features:

  • async and sync connections
  • mosquitto connection is stored in the PL_blob > this offers multiple mqtt connections
  • connect/pub/sub/disconnect predicates in prolog
  • custom callback per connection supported (set in options when creating connection)
  • multithreaded support: an additional engine will be created and attached to mosquito thread to perform callbacks