Hello there,
I´m developing a program in the M2M Studio and I have a question:
How can I make the instruction “adl_atSendResponse” to work like a “printf” in C???
The point is, that I’m interested in making like a “printf(”\nContador=%d", counter)" but with the “adl_atSendResponse” in order to see the number of the incremental counter in the Shell window.
Any ideas???
I know there is this instruction: “adl_atSendStdResponseExt” but i don´t know exactly, how it works.
Here´s my code:
u32 counter;
int counter1;
void MyGpioEventHandler ( s32 GpioHandle, adl_ioEvent_e Event, u32 Size, void * Param )
{
TRACE (( 1, "EVENT" ));
// Check event
switch ( Event ){
case ADL_IO_EVENT_INPUT_CHANGED :
if (counter1 % 2 == 0)
{
counter ++;
adl_atSendStdResponseExt(ADL_AT_RSP, "\r\nContador", counter);
}
counter1 ++;
}
}
Thanks