Closed serg3295 closed 11 months ago
Small fixes.
Select next parameter in mqtt:connect() when port or secure are nil
Test cases:
m:connect('mqtt://192.168.1.31', nil, nil, 0, function()
print("MQTT connected! Full uri.")
end,
function(client)
print("MQTT disconnected! Full uri.")
end
)
-- or
m:connect('mqtt://192.168.1.31', nil, 0)
Sorry, my last commit incorrectly handles the case
mqtt:connect("server", function(client) print("connected") end, handle_mqtt_error)
An additional check on port==nil, secure==nil is required before n++;
Fixed.
Thank you for the PR @serg3295 ! Merge has been done!
dev
branch rather than for therelease
branch.docs/*
.The mqtt module does not work with IDFv5.0 I think an additional user_config checks were added in new espressif/esp-mqtt submodule.
Error log:
This PR fixes that error.