Skip to content

Commit b4813c7

Browse files
Rocketctsandeepmistry
authored andcommitted
add tx buffer variable in constructor
1 parent 615677e commit b4813c7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: src/MqttClient.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ MqttClient::MqttClient(Client& client) :
7070
_connected(false),
7171
_subscribeQos(0x00),
7272
_rxState(MQTT_CLIENT_RX_STATE_READ_TYPE),
73+
_txBufferIndex(0),
74+
_txPayloadBuffer(NULL),
75+
_txPayloadBufferIndex(0),
7376
_willBuffer(NULL),
7477
_willBufferIndex(0),
7578
_willMessageIndex(0),

0 commit comments

Comments
 (0)