We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello, this might be my basic misunderstanding, but I am unable to use this library to connect to mosquitto mqtt broker.
On the client side I get: WARNING: MQTT error: connection timed out (waiting for :CONNACK)
WARNING: MQTT error: connection timed out (waiting for :CONNACK)
On mosquitto side I get: 1573232854: New connection from 127.0.0.1 on port 1883. 1573232861: Socket error on client <unknown>, disconnecting.
1573232854: New connection from 127.0.0.1 on port 1883.
1573232861: Socket error on client <unknown>, disconnecting.
So cl-mqtt is somehow reaching the broker, but the handshake is not completed.
Tested with cl-mqtt a7028bc on 2 different machines:
with only slightly modified example form README (I am not using swank, so no cl-async-repl):
(ql:quickload :cl-async) (ql:quickload :cl-mqtt) (defpackage :mqtt-player (:use :cl :mqtt :bb)) (in-package :mqtt-player) (defun test-it (host port) (bb:alet ((conn (mqtt:connect host :port port :client-id "mqtt-player" :on-message #'(lambda (message) (format t "~%RECEIVED: ~s~%" (babel:octets-to-string (mqtt:mqtt-message-payload message) :encoding :utf-8)))))) (bb:walk (mqtt:subscribe conn "/a/#") (mqtt:subscribe conn "/b/#") (mqtt:publish conn "/a/b" "whatever1") (mqtt:unsubscribe conn "/a/#") (mqtt:publish conn "/a/b" "whatever2") (mqtt:publish conn "/b/c" "foobar") (as:with-delay (1) (mqtt:disconnect conn)))) (values)) (as:with-event-loop () (test-it "localhost" 1883))
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello,
this might be my basic misunderstanding, but I am unable to use this library to connect to mosquitto mqtt broker.
On the client side I get:
WARNING: MQTT error: connection timed out (waiting for :CONNACK)
On mosquitto side I get:
1573232854: New connection from 127.0.0.1 on port 1883.
1573232861: Socket error on client <unknown>, disconnecting.
So cl-mqtt is somehow reaching the broker, but the handshake is not completed.
Tested with cl-mqtt a7028bc on 2 different machines:
with only slightly modified example form README (I am not using swank, so no cl-async-repl):
The text was updated successfully, but these errors were encountered: