require "core" local device = core.get_device( "device_id" ) if device then print( "device name:" .. device.name ) end