I just have a question about getting a custom AT command to work. I’m using the SL808x. I’ve used this code to initialize:
void pretendCommand(adl_atResponse_t *param)
{
adl_atSendResponse( ADL_AT_UNS, (ascii*)"Received AT\n" );
}
//... later in main
s16 err = adl_atCmdSubscribeExt("AT+SPOOF",
pretendCommand,
ADL_CMD_TYPE_PARA|0x0011,
NULL,
ADL_CMD_SUBSCRIPTION_ONLY_EXTERNAL_PORT);
if(err != OK)
{
adl_atSendResponse ( ADL_AT_UNS, "Not good.\n" );
}
However, when I then try to use “AT_SPOOF=test” on the console, I just get ERROR back. Any obvious issue here? Thanks again!