Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: jim [...] k4gvo.com
Cc:
AdminCc:

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



Subject: Net::MQTT::Simple and Net::MQTT::Simple::Auth subscription stopped working.
Date: Sun, 20 Sep 2020 06:16:23 -0400
To: bug-Net-MQTT-Simple [...] rt.cpan.org
From: Jim Lynch <jim [...] k4gvo.com>
This is similar to bug ID 129564 however the patch included in that bug is in my version of Simple.pm.  I did a locate and there is only one Simple.pm on the system.  This is a Linux Mint 18 OS. It also fails to hear anything on a Linux Mint 20 system. The module is 1.24, perl is 5.22 and 5.30 respectively. This command shows activity: mosquitto_sub -v -u jim -P password -t '#' -h 192.168.2.71 -p 1883 This program does not: use Net::MQTT::Simple::Auth; my $mqtt = Net::MQTT::Simple::Auth->new("192.168.2.71:1883",'jim','password' ); print "Does it get here?\n"; $mqtt->run (     "#" => sub {         my ($topic, $message) = @_;         print "[$topic] $message\n";     }, ); The server running on .71 is running version 1.5.7-1 of mosquitto. (MQTT version 3.1/3.1.1 compatible message broker) Also this fails: use Net::MQTT::Simple::Auth; my $mqtt = Net::MQTT::Simple::Auth->new("mymosquitto.com:1883",'jim','password' ); print "Does it get here?\n"; $mqtt->run (     "#" => sub {         my ($topic, $message) = @_;         print "[$topic] $message\n";     }, ); While this returns data: mosquitto_sub -v -u jim -P password -t '#' -h mymosquitto.com -p 1883 Rustburg/environment {"date":"2020/09/20 05:03:17","t1":84.43,"t2": 83.30,"h": 49.00,"hi": 84.07} The print statement is being display, so it's not hanging in the "new" function. The password isn't password obviously. Thanks for any insight. Jim.