return: an array of items (table) or nil in a case of an error.
Edit
require "core"
local items = core.get_items_by_device_id( device_id )
if items then
for _, item in ipairs( items ) do
print( "item name:" .. item.name )
end
end
How can we help?
A premium WordPress theme with integrated Knowledge Base,
providing 24/7 community based support.