Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] Interoperability between V3.1 and V5

Hi Steve,

The log message on connect is:

New client connected from <ip>:<port> as <client id> (p<protocol>,
c<clean session/start>, k<keepalive>, u'<username>')

The protocol value currently shows: 5 for MQTT v5.0, 2 for MQTT
v3.1.1, and 1 for MQTT v3.1. I'm fixing that so it will be 5, 4, and 3
respectively to match the protocol assigned number.

Regards,

Roger


On Sun, 1 Aug 2021 at 06:08, Steve Prior <sprior@xxxxxxxxxxxx> wrote:
>
> With log_type all on a test mosquitto server I don't see any way to determine
> what protocol version a client used to connect to the broker.  Is there any way
> on the server to verify that a client is using a given protocol version? This
> will become important to me later when I try to change the protocol version in
> the c library from SWI-Prolog.
>
> Steve
>
> On 7/29/2021 5:39 AM, Roger Light wrote:
> > Hi Steve,
> >
> > That's correct. The only caveat is that when MQTT v5 clients publish
> > messages that have MQTT v5 properties attached those properties won't
> > be passed to the v3.1/v3.1.1 clients of course.
> >
> > Regards,
> >
> > Roger
> >
> > On Thu, 29 Jul 2021 at 06:28, Steve Prior <sprior@xxxxxxxxxxxx> wrote:
> >> I'm starting to move from v3.1 to v5 and wanted to confirm that v3.1 clients can
> >> interoperate with v5 clients through Mosquitto (both sides can publish and
> >> subscribe to the other versions messages), correct?
> >>
> >> Steve
> >>
> >> _______________________________________________
> >> mosquitto-dev mailing list
> >> mosquitto-dev@xxxxxxxxxxx
> >> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/mosquitto-dev
> > _______________________________________________
> > mosquitto-dev mailing list
> > mosquitto-dev@xxxxxxxxxxx
> > To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/mosquitto-dev
>
>


Back to the top