I have found out what’s causing the problem;
the extra characters at the end of strings that I was sending (i guess they were ) shouldn’t be included in the command string.
I have resolved this issue but there is another problem I am facing now;
On Debug mode, I can run the command via TCP, I can see the response and I can see that It’s executed on the device.
When I compile the same code on Release mode, I don’t see the response, It also doesn’t execute the command.
What am I missing?
Command to send:
bool OuterAT_Handler(adl_atResponse_t *paras)
{
char tempData[128];
TRACE((17,"OUTER 1"));
wm_sprintf(tempData, "%s", paras->StrData);
ATRSP("\r\nCevap Geldi\r\n");
ATRSP(CustomreturnData);
ATRSP("\r\n");
TRACE((17,parseString(tempData,2,2)));
if (wm_strncmp(parseString(tempData,2,2), "OK", 2) != 0)
{
ATRSP("\r\nCevap Geldi : Onaylandi\r\n");
ATRSP(CustomreturnData);
ATRSP("\r\n");
wm_sprintf(CustomreturnData, "%s", (char *)tempData);
TRACE((17,CustomreturnData));
}
TRACE((17,CustomreturnData));
return FALSE;
}
case 21:
// AT+COMMAND
if (cmd[10] == '=')
{
wm_memset(tempData, 0, wm_strlen(cmd) + 1);
wm_memcpy(tempData, parseString(cmd, 11, wm_strlen(cmd) - 11), (wm_strlen(cmd) - 11));
wm_strRemoveCRLF(cmddata, tempData, wm_strlen(cmd) - 11);
TRACE((17,cmddata));
TRACE((17, "AT+COMMAND: %d", adl_atCmdSend(cmddata, (adl_atRspHandler_t) OuterAT_Handler, "*", NULL)));
ATRSP("\r\nKomut Geldi\r\n");
ATRSP(cmddata);
ATRSP("\r\n");
}
break;
I didn’t receive any private message here.