From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mikael Djurfeldt Newsgroups: gmane.lisp.guile.user Subject: Re: [ANN] guile-mqtt-0.2.0 released Date: Sun, 17 Nov 2024 12:36:34 +0100 Message-ID: References: Reply-To: mikael@djurfeldt.com Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7374"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-user , Mikael Djurfeldt To: =?UTF-8?Q?Aleix_Conchillo_Flaqu=C3=A9?= Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sun Nov 17 12:37:29 2024 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tCdaq-0001km-Nl for guile-user@m.gmane-mx.org; Sun, 17 Nov 2024 12:37:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tCdaF-00013l-1Q; Sun, 17 Nov 2024 06:36:51 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tCdaD-00013X-R2 for guile-user@gnu.org; Sun, 17 Nov 2024 06:36:50 -0500 Original-Received: from mail-vk1-f172.google.com ([209.85.221.172]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tCdaB-000722-Ke for guile-user@gnu.org; Sun, 17 Nov 2024 06:36:49 -0500 Original-Received: by mail-vk1-f172.google.com with SMTP id 71dfb90a1353d-514589ac56dso503568e0c.0 for ; Sun, 17 Nov 2024 03:36:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731843406; x=1732448206; h=cc:to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=QXmJ+5u8irNQC8xlTxNHlE1PHeLl/MjH0YpevVBZph0=; b=eRcCF/ZogGSRlaYAUUzksAHJx4/lILSll5NYcqTgUomczGHMtkIFbSpFVuWhT1P80s xRz9L8A+foLnj3pkY4QddKjoC7KA/1UbT96GWdJUBmyTMghV+rWlZpPnTI2K12E4ZYOW bo7ux3aEh+Tu6H/alzPanw9xWIfjWj1BBmqEFILerq/UbFmzTITqSBrtgHygS5gsq7+M hEGeSjt9gmYT2yg7ka8asCSCovzJd/+yV2cPYJsTa6JEBVBjFXKY9+0ecbHfHTNr8zS7 LAS+oKFumc+fQEu9pgTvamMkzuoplF7n65AoIXgATIFanylAb8IP8SIRbS7Hk7YQC5Iq ILjw== X-Gm-Message-State: AOJu0YwOc+M7UNYVRZVjKeBUisdIlIZJk0OpVBIZx+zGJe65CxdP42UV vf+Sj4JOY97TS2z11W6bA8MBuOfc+fy+E1jKeTJrC6RAlE/8N7OQfGpj5cVJtpGlbog96wJl95Z m2T95QcOyPV9G5CeKheDAeAxfqVm1fA== X-Google-Smtp-Source: AGHT+IEmdefDNfmdOcpMqAopd9V8+7RY2RVcRO6zejh94OSd4ewLn80MIqyjnmIOIBNV2LYIOncqGGCHlmXmGG778NQ= X-Received: by 2002:a05:6122:82a8:b0:50c:9834:57b3 with SMTP id 71dfb90a1353d-51477f0bee9mr8647538e0c.4.1731843405677; Sun, 17 Nov 2024 03:36:45 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=209.85.221.172; envelope-from=mdjurfeldt@gmail.com; helo=mail-vk1-f172.google.com X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.696, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.user:19900 Archived-At: Nice :) Thank you for your work! Den s=C3=B6n 17 nov. 2024 11:39Aleix Conchillo Flaqu=C3=A9 skrev: > Hi! > > guile-mqtt 0.2.1 now available in macOS via Guile Homebrew > (https://github.com/aconchillo/homebrew-guile): > > $ brew tap aconchillo/guile (only needed once) > $ brew install guile-mqtt > > On Tue, Nov 12, 2024 at 1:17=E2=80=AFAM Mikael Djurfeldt > wrote: > > > > Guile MQTT provides bindings for the libmosquitto MQTT client > > library. The bindings are written in > > [GOOPS](https://www.gnu.org/software/guile/manual/html_node/GOOPS.html) > > and rely on lower-level bindings created by NYACC directly and > > automatically from mosquitto.h. > > > > Changes compared to v0.1.0: > > > > * All functionality of Chicken Scheme mosquitto bindings now > > implemented and documented. > > > > * Distribute own copy of (... foreign cdata). NYACC is now not > > required if building from a tar archive (as opposed to building from > > a git repository clone). > > > > * Support make in separate build directory. > > > > * Bugfix: unsubscribe now works. > > > > The bindings align with GOOPS style, which means short method > > names. (The specialization is done through the arguments.) > > > > The user can extend the client class by inheritance. > > > > Guile MQTT is free software and is released under the LGPL v3 license; > the > > full source distribution is available through > > > > * a tarball: > > > > > https://github.com/mdjurfeldt/guile-mqtt/releases/download/v0.2.0/guile-m= qtt-0.2.0.tar.gz > > > > * the git repository: > > https://github.com/mdjurfeldt/guile-mqtt > > > > Guile MQTT maturity is beta level. > > > > The following example, as well as the Guile libmosquitto bindings > > themselves, > > are inspired by the [Chicken Scheme mosquitto > > bindings](http://wiki.call-cc.org/eggref/5/mosquitto) by Dmitrii > > Kosenkov. > > > > ``` > > (use-modules (mosquitto client)) > > > > (let ((client (make-client #:on-connect > > (lambda (client err) > > (if (not (eq? err MOSQ_ERR_SUCCESS)) > > (abort err) > > (display "Yay, we are connected!")))))) > > (set! (disconnect-callback client) > > (lambda (client err) > > (if (not (eq? err MOSQ_ERR_SUCCESS)) > > (display "Unexpected disconnect...")))) > > > > (set! (message-callback client) > > (lambda (cl msg) > > (display (string->append "Topic: " (topic msg) > > "Payload:" payload msg)) > > (publish client "topic2" "message received, thanks!"))) > > (connect client "localhost" #:username "mqtt-admin" #:password > "mypass") > > (subscribe client "topic1") > > (loop-forever client)) > > ``` > > > > See further examples under the directory [examples]( > > https://github.com/mdjurfeldt/guile-mqqt/tree/main/examples). >