Skip to content

@pumpkin-plugins/port-mapping API / upnp / parseIdentity

Function: parseIdentity() ​

parseIdentity(xml): RouterIdentity | undefined

Defined in: tools/port-mapping/src/upnp.ts:79

Reads the make and model a router gives in its device description.

Parameters ​

xml ​

string

The description document.

Returns ​

RouterIdentity | undefined

What the root device says about itself, or undefined when it says nothing.

Pumpkin Plugins documentation