This is a basic implementation of the Matlab toolkit extension.
The toolkit requires the paho-c library.
In Fedora:
dnf install paho-c-devel
In Ubuntu:
apt install libpaho-mqtt-dev
To install, run the Octave package manager:
-
To install from online:
pkg install -forge mqtt -
To install from a local tarball.
pkg install octave-mqtt-XXXXXXX.tar.gzWhere XXXXXXX is the version of the the downloaded tarball.
-
Load the octave-mqtt package.
pkg load mqtt -
Connect to a server using the mqttclient function
-
Use the subscribe, read and write commands to read and write data