Added support for sending publish packet