I forgot to mention: this code works with AT firmware v0.22 & up.


AT_v0.22 is the highest you can flash on your module if it has only 512kB. Don't worry, there is something you can do.