esp_mqtt_handle_transport_read_error() function
Processes error reported from transport layer (considering the message read status)
Arguments
err
Error reported from TCP transport
mid_message
True if the error occured when reading incomplete message
Return value
- 0 on Timeout - -1 on Timeout with incomplete message - -2 on Error or EOF