|  Developer
Updated on November 22, 2021

get_gateways()

  • Get all gateways registered within the hub.
Edit
  • params: none.
  • return: an array of gateways (table) or nil in a case of an error.
Edit
				
					require "core"

local gateways = core.get_gateways()
if gateways then
    for _, gate in ipairs( gateways ) do
        print( "gateway name:" .. gate.name )
    end
end