CoAP Multicast Discovery example: fix error handling


The CoapMulticastClient.onError handler was actually trying to handle
the base QCoapClient::error signal which is using a QCoapReply* as a
parameter. This type is not known to QML, so this produced a qmllint
warning.

Fix it by processing the QCoapClient::error() signal on the C++ side,
and converting it to the existing QmlCoapMulticastClient::finished()
signal with only one int parameter, because the QCoapReply is really
not needed for this example.

Task-number: QTBUG-113858
Pick-to: 6.6 6.5
Change-Id: I5b41dd9d19f44d813051f4705521d0026ab55848
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
commitebd40ab7302e36a58596a486bc68a2587ad1eeae
parent1eb537da531df9024f5c1d4f78dd1606bc7ad2ae
authorIvan Solovev <ivan.solovev@qt.io>
committerIvan Solovev <ivan.solovev@qt.io>
commit timeWed, 21 Jun 2023 10:31:12 +0200