Passing a variable from at command send to response handler



Is there a way to pass a variable from the adl_atCmdSend(…) call, and have the variable in the response handler?

From the documentation, it looks like paras.contxt could do this, but it doesn’t seem to work.

Any help is appreciated.

Thanks for your time.



Don’t forget that the context variable is a pointer to your data, NOT the data itself.

You have to adl_memGet() some memory first, then call the command with the context, and don’t forget to adl_memRelease() the variable in your handler when you’ve finished with it or you will end up with a memory leak.

ciao, Dave