[Publisher] Missing check that encoding succeeds before sending
In static void MessageCtx_send_publish_message(MessageCtx* context)
: if buffer
encoding fails (return null), the buffer is sent anyway, thus making UDP sending fail with no explicit message. ([2023/06/01 11:20:38.229] (Error) SOPC_UDP_Socket_SendTo error Success ...
)
In case buffer is null, log an error and do not try to send.
Use SOPC_UADP_NetworkMessage_Get_Last_Error();
to provide relevant information