08.03.2022, 09:46
Add after log('read request', res, code), if it works then you can replace log(value) with grp.checkwrite or grp.checkupdate.
Code:
value = res:match('S_OK%s+%d+%s+(%d+)')
if value then
value = tonumber(value)
log(value)
end