def get_device_id(self, dev):
com, code, ok = io.send_packet(CMDTYPE.GETID, <NUM_LIT:0>, dev, self.baudrate, <NUM_LIT:5>)<EOL>if code is None:<EOL><INDENT>self.error(action='<STR_LIT>')<EOL><DEDENT>return code<EOL>
Get device ID at given address/path.

        :param str dev: Serial device address/path
        :param baudrate: Baudrate to use when connecting (optional)