Skip to content

olsky/swi-mqtt-pack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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