Skip to content

Function: autoDetect() ​

ts
function autoDetect(profiles, fallback?): AutoDetect;

Defined in: netconf/src/devices/device.ts:247

Let the client choose a profile after the hello: the one whose detect() scores highest, else fallback. Pass the result as connect({ profile }). Settings needed before the hello, such as the port, don't apply. See Choosing a profile.

Parameters ​

profiles ​

readonly DeviceProfile[]

fallback? ​

DeviceProfile

Returns ​

AutoDetect

Released under the MIT Licence.