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.kalinow...@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 <fpiecho...@gmail.com> > *Sent:* Tuesday, October 10, 2017 8:34:07 AM > *To:* Maurice Kalinowski > *Cc:* interest@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.kalinow...@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= >> qt...@qt-project.org] *On Behalf Of *Filip Piechocki >> *Sent:* Friday, September 22, 2017 3:10 PM >> *To:* interest@qt-project.org Interest <interest@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 >> > >
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest