client.publish("sensor1",temperature_formatted()) omit the braces after temperature_formatted
And, perhaps, omit the braces in
temperature_formatted = ( f"{temperature:.1f}" )
Side topic, I would add a client.loop_start() after the connect.
And, perhaps, omit the braces in
temperature_formatted = ( f"{temperature:.1f}" )
Side topic, I would add a client.loop_start() after the connect.
Statistics: Posted by ghp — Sat Apr 19, 2025 4:49 pm