Maurice Kalinowski
8c8e505310
Update data receiving
...
transportReadReady might contain more than one MQTT message. Hence
iterate on the buffer itself and do not use readAll().
2017-02-17 10:40:39 +01:00
Maurice Kalinowski
cc16b02378
Add some tests for append
2017-02-17 08:26:50 +01:00
Maurice Kalinowski
4f40bbf299
emit connected signal
2017-02-09 13:27:08 +01:00
Maurice Kalinowski
a439914732
rename target executable
2017-02-09 09:59:27 +01:00
Maurice Kalinowski
720bc32b04
Add username/password to connect
2017-02-05 17:15:21 +01:00
Maurice Kalinowski
1954071191
A packet header can only have valid command values
...
Introduce UNKNOWN for setting invalid ones to be able to more easily
check the state of a packet.
2017-01-24 12:45:50 +01:00
Maurice Kalinowski
d15c39fea3
Add initial QMqttControlPacket tests
2017-01-24 12:28:09 +01:00
Maurice Kalinowski
97521787d0
Do not allow to change keepAlive when connected or connecting.
2017-01-23 14:52:29 +01:00
Maurice Kalinowski
2e5d5e3cfc
Send ping on keepAlive
...
The broker expects a ping from each client to be received within
KeepAlive * 1.5 timeframe. If there is non received, the broker will
disconnect.
2017-01-23 14:50:49 +01:00
Maurice Kalinowski
c7153f44e0
Fix typo.
2017-01-23 14:45:22 +01:00
Maurice Kalinowski
99867f2919
emit disconnected for state changes.
2017-01-23 14:40:30 +01:00
Maurice Kalinowski
af338cefc3
Fix disconnection from server
...
When server disconnects, the socket stays at open state. Hence, trying
to reconnect will fail if only checked for QIODevice::isOpen. Use the
connected state instead for anything AbstractSocket based.
2017-01-23 14:40:09 +01:00
Maurice Kalinowski
a681de7712
remove non-required Q_UNUSED
2017-01-20 14:23:32 +01:00
Maurice Kalinowski
cf44345f4b
Add ping button to example.
2017-01-20 14:23:01 +01:00
Maurice Kalinowski
e0afbb28fa
Add support for ping request/response
2017-01-20 14:22:49 +01:00
Maurice Kalinowski
bb0df95feb
add exports for private classes
2017-01-20 14:02:55 +01:00
Maurice Kalinowski
706d0abfce
Disconnect before deleting connection
2017-01-20 13:55:33 +01:00
Maurice Kalinowski
9d9c92f91d
using client IDs actually works with 3.1
2017-01-20 11:48:00 +01:00
Maurice Kalinowski
a7b83d7d94
Handle messages receival in example
2017-01-20 11:07:08 +01:00
Maurice Kalinowski
7f0846f938
Add receiving and emiting new messages
2017-01-20 11:06:37 +01:00
Maurice Kalinowski
631586dbc1
add subscribe button to example
2017-01-20 10:24:59 +01:00
Maurice Kalinowski
745bc99dcd
Add subscribe support
...
subscribe with QOS 2 works, in conjunction with publish support a client
can also send messages to itself \o/
2017-01-20 10:24:47 +01:00
Maurice Kalinowski
9fbf1f7ac6
Update example to specify topic and message to publish
2017-01-20 09:41:59 +01:00
Maurice Kalinowski
6b771e7dd2
Add publish command
...
Only works for very simple publishes so far, no QoS verification or
such.
2017-01-20 09:41:40 +01:00
Maurice Kalinowski
3b111f8a18
Add Disconnect
...
Note that standard requires to also close the physicial connection after
successfully sending the disconnect command. Hence, disconnect itself
needs to be synchronous for bytes written.
2017-01-20 08:25:57 +01:00
Maurice Kalinowski
ff5bca5436
Add Control Packet class
...
Helps for generalizing packet generation and later on for testing...
2017-01-20 08:08:23 +01:00
Maurice Kalinowski
a89d471be5
Fix int <-> quint16 conversion issues
2017-01-19 15:37:30 +01:00
Maurice Kalinowski
8157661d71
Move communication into QMqttConnection
...
client itself is now detached, and communication fully asynchronous.
2017-01-19 15:37:16 +01:00
Maurice Kalinowski
b0d17c2196
Make example a bit more verbose
2017-01-19 13:41:23 +01:00
Maurice Kalinowski
d67f06e583
Add some initial state handling
2017-01-19 13:41:10 +01:00
Maurice Kalinowski
50b5230a57
Add example app to get started
2017-01-19 13:09:33 +01:00
Maurice Kalinowski
ded87ab1b5
Create ClientPrivate to get rid of variables in public class
2017-01-19 13:09:22 +01:00
Maurice Kalinowski
cb826ba26f
Initial draft of mqtt client
...
Just a sketch to get started.
Is capable to send CONNECT to mosquitto and other mqtt brokers. However,
mosquitto only supports mqtt 3.1, while we want to support 3.1.1
(standard 4).
For now, focus on 3.1 and try to identify a 3.1.1 broker afterwards.
2017-01-19 11:20:31 +01:00
Maurice Kalinowski
b9f44867a7
Initial commit
...
rough sketch to get started
2017-01-19 10:27:05 +01:00