Skip Menu |

This queue is for tickets about the Net-MQTT-Simple CPAN distribution.

Report information
The Basics
Id: 129564
Status: new
Priority: 0/
Queue: Net-MQTT-Simple

People
Owner: Nobody in particular
Requestors: virii [...] c3l.lu
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Subscription stopped working
Date: Mon, 13 May 2019 19:22:00 +0000
To: bug-Net-MQTT-Simple [...] rt.cpan.org
From: Tyler Durden <virii [...] c3l.lu>
Hi I am unable to subscribe with the latest version of Net::MQTT::Simple (1.22) to the newest version of Mosquitto MQTT server (1.6.2). Publishing works fine but subscribe is simply not returning anything. Debug messages from Mosquitto are not very revealing: Received PUBLISH from Net::MQTT::Simple[17712] (d0, q0, r0, m0, 'test/test', ... (6 bytes)) Received SUBSCRIBE from Net::MQTT::Simple[17712] Socket error on client Net::MQTT::Simple[17712], disconnecting. I tried with my code and with the mqtt-simple program provided. Example: perl mqtt-simple.pl --insecure -h 127.0.0.1 -s "test/test" -u testuser -pass testpass Perl version used: 5.26.1 OS: Ubuntu bionic -- Chaos Computer Club Lëtzebuerg A.S.B.L. (NGO) e. virii@c3l.lu (GPG: 0xce8c12f32a2cf11b) t. +352-27-40-20-30-4 w. https://c3l.lu/
Subject: Re: [rt.cpan.org #129564] AutoReply: Subscription stopped working
Date: Tue, 14 May 2019 08:37:00 +0000
To: bug-Net-MQTT-Simple [...] rt.cpan.org
From: Tyler Durden <virii [...] c3l.lu>
Ok after some more debugging I found out that it seems you have to specify a packet identifier other than \0\0 in the _send_subscribe subroutine to make it work again. This may apply to the _send_unsubscribe as well (haven't tested it). Greetings virii Bugs in Net-MQTT-Simple via RT: Show quoted text
> [rt.cpan.org #129564]
-- Chaos Computer Club Lëtzebuerg A.S.B.L. (NGO) e. virii@c3l.lu (GPG: 0xce8c12f32a2cf11b) t. +352-27-40-20-30-4 w. https://c3l.lu/

Message body is not shown because sender requested not to inline it.