If enum and int sizes are different, make sure QoS write does not cause memory overwrite.
If enum and int sizes are different, make sure QoS write does
not cause memory overwrite.

Bug: 464551

eclipse/paho.mqtt.embedded-c,monstrenyatko/ArduinoMqtt,eclipse/paho.mqtt.embedded-c,eclipse/paho.mqtt.embedded-c,monstrenyatko/ArduinoMqtt,eclipse/paho.mqtt.embedded-c,eclipse/paho.mqtt.embedded-c