Multicast#
Functions#
Send multicast group join or leave. This is a blocking API.
Join to a multicast group. This is a blocking API.
Leave the multicast group. This is a blocking API.
Send raw data to the module. This is a blocking API.
Function Documentation#
rsi_multicast#
static int32_t rsi_multicast (uint8_t flags, int8_t * ip_address, uint8_t command_type)
Send multicast group join or leave. This is a blocking API.
[in] | flags | - Select IP version. BIT(0) : 0 - IPv4 , 1 - IPv6 |
[in] | ip_address | - Multicast IP address |
[in] | command_type | - Type of commands: JOIN/LEAVE |
Returns
0 - Success
Negative value - Failure
34
of file network/protocols/rsi_multicast.c
rsi_multicast_join#
int32_t rsi_multicast_join (uint8_t flags, int8_t * ip_address)
Join to a multicast group. This is a blocking API.
[in] | flags | - Select the IP version. BIT(0): 0 - IPv4 , 1 - IPv6 |
[in] | ip_address | - IPv4/IPv6 address of multicast group. |
Returns
0 - Success
Negative Value - Failure (Possible Error Codes - 0xfffffffd, 0xfffffffc)
Note
Precondition - rsi_config_ipaddress() API needs to be called before this API.
Device supports only one multicast group. It must leave the previous group, to join a new multicast group.
Refer to Error Codes for the description of above error codes.
123
of file network/protocols/rsi_multicast.c
rsi_multicast_leave#
int32_t rsi_multicast_leave (uint8_t flags, int8_t * ip_address)
Leave the multicast group. This is a blocking API.
[in] | flags | - Select the IP version. BIT(0) – RSI_IPV6. Set this bit to enable IPv6. By default it is configured to IPv4. |
[in] | ip_address | - IPv4/IPv6 address of multicast group. |
rsi_config_ipaddress() API needs to be called before this API.
Returns
0 - Success Negative Value - Failure (Possible Error Codes - 0xfffffffd, 0xfffffffc, 0x0021,0x002C,0x0015,0xBB16,0xBB17)
Note
Precondition - rsi_config_ipaddress() API needs to be called before this API.
Device supports only one multicast group. It must leave the previous group, to join a new multicast group.
Refer to Error Codes for the description of above error codes.
151
of file network/protocols/rsi_multicast.c
rsi_send_raw_data#
int32_t rsi_send_raw_data (uint8_t * buffer, uint32_t length)
Send raw data to the module. This is a blocking API.
[in] | buffer | - Pointer to the buffer to send |
[in] | length | - Length of the buffer to send |
Returns
0 - Success
Non-Zero Value - Failure
31
of file network/protocols/rsi_raw_data.c