'Returns the first packet from the receive buffer'

def getReply(self):

    rep = getPacket(serialPort)
    if (not rep._check()):
        raise _SNAPError('reply    packet    checksum    failed')
    return rep
