[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [mosquitto-dev] connect_callback called repeatedly
|
I am coding in C++
I have a callbacks registered for connect, disconnect, message and subscribe.
In the working cases the connect callback gets calles, exactly, once.
In the failing case the connection callback is called, then subscribe (once for each subscription) and the the connection is called repeatedly (about every second) with no error, and no other callbacks, even when new values for the subscribed topics are posted.
In all cases mosquitto_sub works fine.
If you need more detail, let me now.
Hi Andrew,
You need to share some more details about what kind of software
and is running and config details on the Pi.
With the callback you mean the connectionLost callback?
If you are running anything mosquitto on the Pi (D); Raspbian
(Stretch) has a very old version of mosquitto packaged. You may
want to add the Debian package repository to your Raspbian OS. One
problem that was solved for me was connection problems to remote
systems including bridging.
Kind regards,
Jeroen
On 12/29/18 10:30 AM, Andrew Holt
wrote:
Hi All,
I have a very odd issue.
I have four different computers all runiing Linux, of one
flavour or another and I've built an app, the ame code, on
each. These computers are:
A: Laptop running Ubuntu 18.04 64 bit
B: Nano-itx running Debian 8 (Jessie)
C: Friendly Arm NanoPi NEO runing Ubuntu 16.04.5 LTS
D: Raspberry PI3 B+ Running Raspbian
All are as up to date as they can be, and all are on
182.168.10.0/24
subnet
The mosquitto broker is running on Raspberry Pi 0 and on
subnet
192.168.0.0/24
The command line tools (mosquitto_pub/_sub) work fine on all
four devices.
My software runs fine on A-C. However on D I have the
connect_callback beeing called multiple times. All it does is
print an identifying string, and the status code (which is
always 0)
I have a disconnect callback that does the same, but is never
called. Any ideas as to a possible cause ?
Thanks,
Andrew
_______________________________________________
mosquitto-dev mailing list
mosquitto-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/mosquitto-dev