func (pkt *SubAckPacket) String() string {
	if len(pkt.Granted) == 0 {
		return fmt.Sprintf("SUBACK mid:%d <no topics>", pkt.ID)
	}
	str := fmt.Sprintf("SUBACK mid:%d %v", pkt.ID, pkt.Granted)
	return str
}
// String stringifies the packet in a human readable format.
String stringifies the packet in a human readable format.
// String stringifies the packet in a human readable format .
func (pkt *SubAckPacket) String() string {
	if len(pkt.Granted) == 0 {
		return fmt.Sprintf("SUBACK mid:%d <no topics>", pkt.ID)
	}
	str := fmt.Sprintf("SUBACK mid:%d %v", pkt.ID, pkt.Granted)
	return str
}
func ( pkt * SubAckPacket ) String ( ) string { if len ( pkt . Granted ) == 0 { return fmt . Sprintf ( " " , pkt . ID ) } str := fmt . Sprintf ( " " , pkt . ID , pkt . Granted ) return str }
String stringifies the packet in a human readable format.
String stringifies the packet in a human readable format .