ECU/src/02- HAL/02- SIM800L/GSM_program.c
void GSM_vidInitHTTP(void)
{
	Error_Status enuErrorCheck = OK;

	/* Initiate HTTP */
	enuErrorCheck = enuSendCommand("AT+HTTPINIT");
	while (enuErrorCheck == NOK)
	{
		enuSendCommand("AT+HTTPTERM");
		enuErrorCheck = enuSendCommand("AT+HTTPINIT");
	}

//	enuSendCommand("AT+HTTPSSL=1");							/* Enable HTTPS */
	enuSendCommand("AT+HTTPPARA=\"CID\",1");			/* Choose barrier profile */
	enuSendCommand("AT+HTTPPARA=\"REDIR\",1");		/* Enable redirection (i.e. If domain redirected to the secure page) */
}
/****************************************************************************************/
/* Description: Opens HTTP connection and configures it									*/
/* Input      : Void				                                                    */
/* Output     : Void		                                                            */
/* Scope      : Public                                                                 	*/
/****************************************************************************************/
Opens HTTP connection and configures it
Input      : Void
Output     : Void
Scope      : Public
Opens HTTP connection and configures it Input : Void Output : Void Scope : Public
void GSM_vidInitHTTP(void)
{
	Error_Status enuErrorCheck = OK;
	enuErrorCheck = enuSendCommand("AT+HTTPINIT");
	while (enuErrorCheck == NOK)
	{
		enuSendCommand("AT+HTTPTERM");
		enuErrorCheck = enuSendCommand("AT+HTTPINIT");
	}
	enuSendCommand("AT+HTTPPARA=\"CID\",1");			
	enuSendCommand("AT+HTTPPARA=\"REDIR\",1");		
}
void GSM_vidInitHTTP ( void ) { Error_Status enuErrorCheck = OK ; enuErrorCheck = enuSendCommand ( " " ) ; while ( enuErrorCheck == NOK ) { enuSendCommand ( " " ) ; enuErrorCheck = enuSendCommand ( " " ) ; } enuSendCommand ( " \" \" " ) ; enuSendCommand ( " \" \" " ) ; }
Description: Opens HTTP connection and configures it
Input      : Void
Output     : Void
Scope      : Public
Description : Opens HTTP connection and configures it Input : Void Output : Void Scope : Public
/* Initiate HTTP */ //	enuSendCommand("AT+HTTPSSL=1");							/* Enable HTTPS */ /* Choose barrier profile */ /* Enable redirection (i.e. If domain redirected to the secure page) */