Skip to content

givenergy-modbus / getLocalSubnet

Function: getLocalSubnet()

getLocalSubnet(): string

Defined in: src/discover.ts:53

Detect the local subnet by finding the first non-loopback IPv4 interface. Assumes a /24 subnet (same assumption as the UDP trick approach).

Returns

string