Contacts the gateway(s) and gets their information
Get-XiaomiGateway [-Connection] <XiaomiSession>
The function sends a broadcast message to detect all reachable Xiaomi Gateway devices on the network. Together with other information, such as SID, we also receive each gateway's IP address, which will be requried to send other commands and interact with sensors later.
Connect-XiaomiSession | Get-XiaomiGateway;
Connection SID IP Port
XiaomiSession f0b429b43e53 10.1.3.10 9898
Reference to an existing connection
Type: XiaomiSession
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False