[To FvM] thanks for showing interest.
When I say not working, I mean after the printf line containing the pdu is executed the cursor just remains there and nothing happens. Eventually, when the modem doesn't recieve the ctrl+z it's looking for, an "ERROR" comes up (just the word ERROR). I know it's coming up because the modem isn't seeing the termination signal, ctrl+z.
Even when I look back at the hex code in the serial monitor window of ccs I don't see "1A" even though the last line of my c program is putc(26).
Added after 2 minutes:
I was wondering if there's something wrong with using putc(26) ? Is there something else I can use ?