Re: Mqtt support in guile?

Matt Wette <[email protected]>
Newsgroups gmane.lisp.guile.user
Message-ID <[email protected]>
On 10/31/24 1:48 AM, Ricardo G. Herdt wrote:
> Hi,
>
> never did it myself, but you can create some bindings to libmosquitto 
> for your usecase. There are bindings for chicken, one can take some 
> inspiration from there: http://wiki.call-cc.org/eggref/5/mosquitto#api
>
> Regards,
>
> Ricardo
>
> Am 31.10.2024 03:24 schrieb Alan Wedel:
>> I have been working on a controller that uses a microcontroller to
>> read some sensors and publish their data to a mqtt broker. I would
>> like to have a guile program subscribe to the mqtt broker and log the
>> sensor readings to a file. Is there anyone using guile with mqtt like
>> this? If so, how are you doing it?
>

Here is a dot-ffi file for mosquitto using nyacc:

   (define-ffi-module (ffi mosquitto)
     #:pkg-config "libmosquitto"
     #:include '("mosquitto.h"))


I just uploaded nyacc-2.01.2, needed to compile above.

refs:
https://savannah.nongnu.org/projects/nyacc
https://www.nongnu.org/nyacc/nyacc-fh-ug.html

Matt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.