Jump to main content

##

# TCPIP_SNMP_ReadCommunityGet Function

## C

    bool TCPIP_SNMP_ReadCommunityGet(
        int index,
        int len,
        uint8_t * dest
    );

## Description

This function is used to collect READ community string from the global community table with respect to the index value.

## Preconditions

TCPIP_SNMP_Initialize() is already called.

## Parameters

Parameters | Description
--- | ---
index | One of the index of community table and it should be less than TCPIP_SNMP_MAX_COMMUNITY_SUPPORT.
len | Length of the community string expected. It should not be more than TCPIP_SNMP_COMMUNITY_MAX_LEN.
dest | Copy the community string to this address and it should have a valid address.

## Returns

- True - If the community string is collected.
- False - If the community string is not collected.

## Remarks

None.