Skip to content

Commit

Permalink
Fix building error in test mode
Browse files Browse the repository at this point in the history
  • Loading branch information
X-Ryl669 committed Mar 7, 2024
1 parent cb0f9cc commit 5d45929
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/src/Network/Clients/MQTTClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -358,10 +358,11 @@ namespace Network { namespace Client {
return -7;
}

#if MQTTUseAuth == 1
MQTTv5::ErrorType handleAuth()
{
Protocol::MQTT::V5::ROAuthPacket packet;
int ret = extractControlPacket(type, packet);
int ret = extractControlPacket(Protocol::MQTT::V5::AUTH, packet);
if (ret > 0)
{
// Parse the Auth packet and call the user method
Expand All @@ -386,11 +387,12 @@ namespace Network { namespace Client {
}
return ErrorType::NetworkError;
}
#endif
MQTTv5::ErrorType handleConnACK()
{
// Parse the ConnACK packet;
Protocol::MQTT::V5::ROConnACKPacket packet;
int ret = extractControlPacket(type, packet);
int ret = extractControlPacket(Protocol::MQTT::V5::CONNACK, packet);
if (ret > 0)
{
// We are only interested in the result of the connection
Expand Down

0 comments on commit 5d45929

Please sign in to comment.