Skip to content

Commit 7e00252

Browse files
authored
Merge pull request #60 from tbaust/master
initializer order wrong of _tx_payload_buffer_size - causes compile error
2 parents b7195a9 + d76cbe5 commit 7e00252

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MqttClient.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ MqttClient::MqttClient(Client* client) :
6969
_cleanSession(true),
7070
_keepAliveInterval(60 * 1000L),
7171
_connectionTimeout(30 * 1000L),
72+
_tx_payload_buffer_size(TX_PAYLOAD_BUFFER_SIZE),
7273
_connectError(MQTT_SUCCESS),
7374
_connected(false),
7475
_subscribeQos(0x00),
@@ -79,8 +80,7 @@ MqttClient::MqttClient(Client* client) :
7980
_willBuffer(NULL),
8081
_willBufferIndex(0),
8182
_willMessageIndex(0),
82-
_willFlags(0x00),
83-
_tx_payload_buffer_size(TX_PAYLOAD_BUFFER_SIZE)
83+
_willFlags(0x00)
8484
{
8585
setTimeout(0);
8686
}

0 commit comments

Comments
 (0)