private/Functions/Hanwha/Get-HanwhaNumOfChannels.ps1

#$c.attribute.value
#/stw-cgi/attributes.cgi/attributes/System/Limit/MaxChannel

Function Get-HanwhaNumOfChannels {
    [cmdletBinding()]
    Param(
        [Parameter()]
        [hashtable]$Object
    )
    
    <#
    Object Definition:
    @{
        IP = [String(Mandatory)]
        Credential = [PSCredential(Mandatory)]
    }
    #>


    #Thankfully this is easy
    $CamCmd = @{
        URI = "https://$($Object.IP)/stw-cgi/attributes.cgi/attributes/System/Limit/MaxChannel"
        Credential = $Object.Credential
    }
    return (Invoke-HanwhaCommand @CamCmd).attribute.value
}