help with alarm code

i know how to do that, the problem is that i cant change how to post a msg without opening the serial port