QString Camera::queryProp(int reg) { std::stringstream command; command << "return get_prop(" << reg << ")"; LuaRef lcon = getLuaRefConnection(); // Get reference to method "lcon.execwait" LuaRef execWait = lcon.get<LuaRef>("execwait"); qDebug() << "execWait: " << execWait.typeName(); usleep(30000); LuaRef result = execWait.call<LuaRef>(lcon, command.str()); return QString("%1").arg(result.toValue<int>()); }