|  Developer
Updated on November 22, 2021

get_items_by_device_id()

  • Get all items registered within the hub related by specified device id.
Edit
  • params: device id (string).
  • 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