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.1.0 released Date: Sat, 9 Nov 2024 22:30:54 +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="16146"; mail-complaints-to="usenet@ciao.gmane.io" To: guile-user Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sat Nov 09 22:31:48 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 1t9t3c-00043w-4e for guile-user@m.gmane-mx.org; Sat, 09 Nov 2024 22:31:48 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t9t36-0005aD-JC; Sat, 09 Nov 2024 16:31:16 -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 1t9t2z-0005Zq-24 for guile-user@gnu.org; Sat, 09 Nov 2024 16:31:09 -0500 Original-Received: from mail-vk1-f171.google.com ([209.85.221.171]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t9t2x-000181-Bs for guile-user@gnu.org; Sat, 09 Nov 2024 16:31:08 -0500 Original-Received: by mail-vk1-f171.google.com with SMTP id 71dfb90a1353d-513de4267d8so1279432e0c.3 for ; Sat, 09 Nov 2024 13:31:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731187865; x=1731792665; h=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=Nz+GW7hVYp/S7oAEyE18+BB1t4VDKq1vjFmc7qi1WzU=; b=CV8e5qQ2IKT0Ts/teJcAWaQqbdNmvFVK4ZWdYwTNdke9l095ROvRWrFSIVqPl1L5O6 ZRrrGOsi3Q/7vEwmvmnmmR0T/iipy6nJDopTbOjPKDu0sei58+u4XNwcZItwfajLB/fZ NpJCsSVC/Edewu/iy3b6L8AFJygspSZnLWWSiQ3woaoXa35NYc2F1yhCuzuaO1wbddnY /mPvHefR7nAq7dPXMZ7BJbov2iP9Dm8W1yMba2ypAGbjUWGs2uOGHak74B0pZo/rGiCf xTMc5+iH1sHN9W5heoH50RUhZA9yKA5zNGG5Hb2lVHeg0U/yhCKqwGXEJhOibNRoCLdk 2s0g== X-Gm-Message-State: AOJu0YzPzQLclLU2CX+H/0UBE4vbqK2WLUTjc4EGYfrbqZO8E04u0vdJ qYipQh6NMASTRVFYxMnC5Xn6ojTx6ZQeqrseoxAeEtyFuLn5ylIcsTRdbeq9OMIJ/RQmaUfI+CY t7J0QCM6IVhlDgX9eNtvYzzwAmda93ao0 X-Google-Smtp-Source: AGHT+IFH4Otp7E9YGaURCFaKrx1WGR8q19SM0d7/WIK/lwqINrumo+3LKNucy0bYq7Un+M+3ROMCdGXGwiIOlnNs0qo= X-Received: by 2002:a05:6122:32c9:b0:50c:4eb7:90fa with SMTP id 71dfb90a1353d-51401bc7d92mr6543276e0c.5.1731187865474; Sat, 09 Nov 2024 13:31:05 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=209.85.221.171; envelope-from=mdjurfeldt@gmail.com; helo=mail-vk1-f171.google.com X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:19883 Archived-At: Sorry for the trouble this may have already caused, but the repository is of course: https://github.com/mdjurfeldt/guile-mqtt On Sat, Nov 9, 2024 at 4:49=E2=80=AFPM 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. > > 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. > > Example: > > This 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). > Guile MQTT maturity is beta level. > > Guile MQTT is free software; the full source distribution is available > through > > * a tarball: > > https://github.com/mdjurfeldt/guile-mqqt/releases/download/v0.1.0/guile-m= qtt-0.1.0.tar.gz > > * the git repository: > https://github.com/mdjurfeldt/guile-mqqt > >