core.get_devices()
params: none.
return: an array of
devices
(table) or nil in a case of an error.