created macro WAIT_INTERVAL_MS, initialized buffer TxPacket and TxPacket_tst to 1