Delta / NNN50_WIFI_API

Dependents:   NNN50_CE_Test_UDP NNN50_linux_firmware NNN50_SoftAP_HelloWorld NNN50_BLEWIFISensor ... more

Embed: (wiki syntax)

« Back to documentation index

m2m_ping_req

m2m_ping_req
[Function]

The function sends ping request to the given IP Address. More...

Functions

NMI_API sint8 m2m_ping_req (uint32 u32DstIP, uint8 u8TTL, tpfPingCb fpPingCb)

Detailed Description

The function sends ping request to the given IP Address.


Function Documentation

NMI_API sint8 m2m_ping_req ( uint32  u32DstIP,
uint8  u8TTL,
tpfPingCb  fpPingCb 
)
Parameters:
[in]u32DstIPTarget Destination IP Address for the ping request. It must be represented in Network byte order. The function nmi_inet_addr could be used to translate the dotted decimal notation IP to its Network bytes order integer represntative.
[in]u8TTLIP TTL value for the ping request. If set to ZERO, the dfault value SHALL be used.
[in]fpPingCbCallback will be called to deliver the ping statistics.
See also:
nmi_inet_addr
Returns:
The function returns M2M_SUCCESS for successful operations and a negative value otherwise.