core.get_items_by_device_id()
params: device id (string).
return: an array of
items
(table) or nil in a case of an error.