Hello,
just need some help passing a pointer to an array to another function. This function is in another source file. The idea is to just send the pointer to the data array which will be sent with a http POST. I have the POST part working well just want to get other data to it.
As it is I just get control characters.
ascii testdata[500];
void cfg_gprs(ascii*);
void adl_main ( adl_InitType_e InitType )
{
wm_sprintf(testdata, "machine=test&data=this is a test line of stuff\r\n"); // 48 bytes long
cfg_gprs(&testdata[0]);
}
void cfg_gprs (ascii* ptr) {
dataptr=ptr;
TRACE (( 1, "(cfg_gprs) Enter." ));
adl_atSendResponse ( ADL_AT_UNS, "***Activate APN\r\n" );
adl_atSendResponse ( ADL_AT_UNS, *ptr );
adl_simSubscribe( evh_sim, GPRS_PINCODE);
}