src/cloud.c
void cloud_sessionConnectAndSend(CLOUD_SESSION_T *s)
{
   /* Capture the transaction start time, used for a session timeout */
   s->transStart = utils_getCurrentTime();

   if (CLOUD_SESSION_CREATE_SUCCESS == s->status)
   {
      cloud_sessionConnect(s);
   }
   if ((CLOUD_SESSION_CONNECT_SUCCESS == s->status) ||
       (CLOUD_SESSION_IDLE == s->status))
   {
      cloud_startSessionAttempt(s);
      cloud_sessionSend(s);
   }
}
//!
//! If the session is not currently connected, attempt to connect,
//! then try to send data if connected. If already connected, attempt
//! to send data.
//!

If the session is not currently connected, attempt to connect,
then try to send data if connected. If already connected, attempt
to send data.
If the session is not currently connected attempt to connect then try to send data if connected . If already connected attempt to send data .
void cloud_sessionConnectAndSend(CLOUD_SESSION_T *s)
{
   s->transStart = utils_getCurrentTime();
   if (CLOUD_SESSION_CREATE_SUCCESS == s->status)
   {
      cloud_sessionConnect(s);
   }
   if ((CLOUD_SESSION_CONNECT_SUCCESS == s->status) ||
       (CLOUD_SESSION_IDLE == s->status))
   {
      cloud_startSessionAttempt(s);
      cloud_sessionSend(s);
   }
}
void cloud_sessionConnectAndSend ( CLOUD_SESSION_T * s ) { s -> transStart = utils_getCurrentTime ( ) ; if ( CLOUD_SESSION_CREATE_SUCCESS == s -> status ) { cloud_sessionConnect ( s ) ; } if ( ( CLOUD_SESSION_CONNECT_SUCCESS == s -> status ) || ( CLOUD_SESSION_IDLE == s -> status ) ) { cloud_startSessionAttempt ( s ) ; cloud_sessionSend ( s ) ; } }
If the session is not currently connected, attempt to connect,
then try to send data if connected.
If the session is not currently connected attempt to connect then try to send data if connected .
/* Capture the transaction start time, used for a session timeout */