Skip to content

Commit

Permalink
bugfix release
Browse files Browse the repository at this point in the history
Bugfix release
  • Loading branch information
bertmelis authored Mar 9, 2023
2 parents e0477d3 + 59b1297 commit 15041c4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"type": "git",
"url": "https://github.com/bertmelis/espMqttClient.git"
},
"version": "1.4.0",
"version": "1.4.1",
"frameworks": "arduino",
"platforms": ["espressif8266", "espressif32"],
"headers": ["espMqttClient.h", "espMqttClientAsync.h"],
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=espMqttClient
version=1.4.0
version=1.4.1
author=Bert Melis
maintainer=Bert Melis
sentence=an MQTT client for the Arduino framework for ESP8266 / ESP32
Expand Down
6 changes: 3 additions & 3 deletions src/MqttClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ MqttClient::MqttClient(espMqttClientTypes::UseInternalTask useInternalTask, uint
, _clientId(nullptr)
, _ip()
, _host(nullptr)
, _port(1183)
, _port(1883)
, _useIp(false)
, _keepAlive(15000)
, _cleanSession(true)
Expand Down Expand Up @@ -338,8 +338,6 @@ int MqttClient::_sendPacket() {
EMC_SEMAPHORE_GIVE();
return -1;
}
// handle with care! millis() returns unsigned 32 bit, token is void*
static_assert(sizeof(uint32_t) <= sizeof(void*), "the size of uint32_t must be smaller than or equal to the size of a pointer");
packet->timeSent = millis();
_lastClientActivity = millis();
_bytesSent += written;
Expand Down Expand Up @@ -464,6 +462,7 @@ void MqttClient::_checkPing() {
}

void MqttClient::_checkTimeout() {
EMC_SEMAPHORE_TAKE();
espMqttClientInternals::Outbox<OutgoingPacket>::Iterator it = _outbox.front();
// check that we're not busy sending
// don't check when first item hasn't been sent yet
Expand All @@ -473,6 +472,7 @@ void MqttClient::_checkTimeout() {
_outbox.resetCurrent();
}
}
EMC_SEMAPHORE_GIVE();
}

void MqttClient::_onConnack() {
Expand Down

0 comments on commit 15041c4

Please sign in to comment.