Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] CONNACK not being processed

Hi Mark,

I agree with Ben, but in addition make sure you're using either
mosquitto_loop_start() or mosquitto_loop_forever().

Cheers,

Roger


On Mon, Jan 30, 2017 at 8:59 PM, Mark Pilant <lpilant@xxxxxxxxxx> wrote:
> I've run across a very strange "problem". I can successfully authenticate
> and connect to the MQTT server, however, my connection callback function is
> never being called.
>
> It is correctly set, and I can see the CONNACK message (0x20, 0x02, 0x00,
> 0x00) being sent from the MQTT server (using Wireshark). But for some
> reason, my callback function isn't being called. (The first thing it does is
> a printf to let me know it has been entered.)
>
> If I take the same information from the program and use the mosquitto_pub
> command line everything works fine.
>
> Any suggestions?
>
> I'm sure it has to be something very simple I'm doing wrong, but I haven't
> been able to spot it.
>
> - Mark
>
>
> _______________________________________________
> mosquitto-dev mailing list
> mosquitto-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/mosquitto-dev


Back to the top