[Interest] QtMqtt

Maurice Kalinowski Maurice.Kalinowski at qt.io
Thu Nov 9 16:14:59 CET 2017


In the middle of another change, but try to change it to: m_payload.append(data.constData(), data.size());

Reason is that at around 35MB you get a null, hence it stops. If you specify the size of the data, QByteArray will take the argument as for granted.

Maurice


From: Filip Piechocki [mailto:fpiechocki at gmail.com]
Sent: Thursday, November 9, 2017 3:57 PM
To: Maurice Kalinowski <Maurice.Kalinowski at qt.io>
Cc: interest at qt-project.org Interest <interest at qt-project.org>
Subject: Re: [Interest] QtMqtt

Hi,
Was playing a bit with QtMqtt and written some example publisher that shares files from a specific directory. Each file contents is sent as a one message on /dirName/fileName topic so a subscriber subscribes on /dirName/+

Along the files there was an 35MB mp4 file (so way below MQTT's ~256MB limit). And it was not sent. I've debugged this and the cause seems to be data.constData() in QMqttControlPacket::appendRaw() - m_payload.size() does not change after append while it was appending 35MB bytearray. Removing .constData() solves the issue - data is properly appended to payload and subscriber got this message. Is there any reason for constData() there? Same in append() - also constData is used there.

Another thing is that QMqttConnection::writePacketToTransport() checks if _any_ bytes were written to QIODevice and what about case where actually written byte count is _less_ than what we wanted to write?

BR,
Filip

On Oct 10, 2017 09:35, "Maurice Kalinowski" <Maurice.Kalinowski at qt.io<mailto:Maurice.Kalinowski at qt.io>> wrote:
Hi,
Only with limited network right now, but the repo has been opened yesterday evening and you can find it here
https://codereview.qt-project.org/#/admin/projects/qt/<https://codereview.qt-project.org/#/admin/projects/qt/qtmqtt>qtmqtt<https://codereview.qt-project.org/#/admin/projects/qt/qtmqtt>
Also jira has a component for it.
Be,
Maurice

Outlook for Android<https://aka.ms/ghei36> herunterladen

________________________________
From: Filip Piechocki <fpiechocki at gmail.com<mailto:fpiechocki at gmail.com>>
Sent: Tuesday, October 10, 2017 8:34:07 AM
To: Maurice Kalinowski
Cc: interest at qt-project.org<mailto:interest at qt-project.org> Interest
Subject: Re: [Interest] QtMqtt

Hi,
so how is it going? QtWS starts today, QtMqtt was mentioned in Qt 5.10 beta release yesterday but I cannot find it anywhere...

BR,
Filip

On Mon, Sep 25, 2017 at 11:05 AM, Maurice Kalinowski <Maurice.Kalinowski at qt.io<mailto:Maurice.Kalinowski at qt.io>> wrote:
Hi Filip,

I’m afraid to say “not yet”. We’ve been struggling with getting the infrastructure in place (with positive updates over the weekend). Currently there are logistical items to be done (license header updates, etc.), but we are progressing nicely now.

The aim is to have everything available (also Qt Knx) within the Qt World Summit timeframe. Probably, or hopefully, earlier.

BR,
Maurice


From: Interest [mailto:interest-bounces+maurice.kalinowski<mailto:interest-bounces%2Bmaurice.kalinowski>=qt.io at qt-project.org<mailto:qt.io at qt-project.org>] On Behalf Of Filip Piechocki
Sent: Friday, September 22, 2017 3:10 PM
To: interest at qt-project.org<mailto:interest at qt-project.org> Interest <interest at qt-project.org<mailto:interest at qt-project.org>>
Subject: [Interest] QtMqtt

Hi,
It's been over a month since the QtMqtt blog post (http://blog.qt.io/blog/2017/08/14/introducing-qtmqtt-protocol/) but I can't find the code to download. Is it already available somewhere?

Best regards,
Filip Piechocki

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20171109/6cf3d1f7/attachment.html>


More information about the Interest mailing list