|  Developer
Updated on November 22, 2021

get_setting()

  • Get device setting by its id
Edit
  • params: setting_id (string).
  • return: setting (table) or nil in a case of an error.
Edit
				
					require "core"

local setting = core.get_setting( setting_id )
if setting ~= nil then
    print( "setting type:" .. setting.valueType )
end