I made a small example of how to create your own functions into the AT demo enabling you to extend the AT example. Of course there is always a risk that we might (probably) migrate soon to another new version of the SDK. To keep you code somewhat safe erasure, I will make a myFunctions.c and myFunctions.h where our functionality will be put in. The only adjustment to the original source code is the file at_cmd.h which contains an array containing all AT commands.
Just try it out. It is quite simple and straight forward. Have fun… and be imaginative!!!