public/Get-Yeelight.ps1


<#
.SYNOPSIS
    Returns connections to Yeelight Lightstrip
.DESCRIPTION
    The function returns connections to Yeelight Lightstrip
.EXAMPLE
    PS C:\> Get-Yeelight
 
.NOTES
    Author: Mateusz Nadobnik
    Link: akademiapowershell.pl
 
    Date: 14-11-2020
    Version: 0.0.1
    Keywords: get, yeelight, xiaomi
    Notes:
    Changelog:
#>

function Get-Yeelight
{
    [cmdletbinding()]
    param()

    try
    {
        Write-Output $script:connections
    }
    catch
    {
        Write-Warning $_
    }
}