We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When the MQTT server is down, Paho takes 100% CPU. Any way to change logic so it does not do this?
The text was updated successfully, but these errors were encountered:
Any ideas how to prevent 100% CPU when MQTT server is down?
Sorry, something went wrong.
Is your program looping while trying to send a message when the broker is not available? Could you post some example code?
No looping, just opening a connection:
@client = PahoMqtt::Client.new( clean_session: @clean_session, client_id: @client_id, username: @username, password: @password, # persistent persistent: true, reconnect_limit: 1000, reconnect_delay: 5, # Keep Alives keep_alive: 29, ack_timeout: 120, # Will will_topic: @will_topic, will_payload: 'offline', will_qos: 2, will_retain: true ) @client.on_connack do logger.info 'MQTT Connected Successfully...' end @client.connect(@ip, @port)
No branches or pull requests
When the MQTT server is down, Paho takes 100% CPU. Any way to change logic so it does not do this?
The text was updated successfully, but these errors were encountered: