Suppress setValue and writeCharacteristic deprecation warnings


The deprecation itself is already handled, and suppressing the warning
is sufficient. For suppression the code using the old APIs is isolated
into its own function.

Pick-to: 6.9 6.8 6.5
Task-number: QTBUG-132455
Change-Id: I9af18e8380f2d0bb481ba580eb747dac2c8f1093
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
Reviewed-by: Lars Schmertmann <lars.schmertmann@governikus.de>
commitda5e303a81951655b081bb582d6e5dc275268ad9
parent8e19833b979ce71f85ae2266880cf4f6eebfb168
authorJuha Vuolle <juha.vuolle@qt.io>
committerJuha Vuolle <juha.vuolle@qt.io>
commit timeThu, 2 Jan 2025 19:00:55 +0200