Call mosuitto loop function after each value and use QoS 2 for improved stability