code: def get_indexed_string(self, index):
          
          max_len = 128
          str_buf = ffi.new("wchar_t[]", str(bytearray(max_len)))
          ret = hidapi.hid_get_indexed_string(self._device, index, str_buf, max_len)
  
          if ret < 0:
              raise HIDException(self._device.get_error())
          elif ret == 0:
              return None
          else:
              return ffi.string(str_buf).encode('utf-8')
docs: Get the string with the given index from the device