This approach will attempt to connect to the dummy server (inside SPRIGHT GW) multiple times, giving it some time to become ready. If the connection is not successful within the specified number of retries, the function will return an error.
Key Changes:
Added a do-while loop to retry the connection attempt.
Used usleep(RETRY_DELAY_US) to introduce a delay between retries.
This approach will attempt to connect to the dummy server (inside SPRIGHT GW) multiple times, giving it some time to become ready. If the connection is not successful within the specified number of retries, the function will return an error.
Key Changes: