4.2.0.0R6
Software Development Kit
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules
Network

Modules

 DNS client
 
 IP
 
 Protocols
 
 Scan
 
 TCP
 
 UDP
 

Data Structures

struct  ltrx_scan_result
 Contains network information acquired from network scan. More...
 

Functions

bool ltrx_network_get_mac_address (uint8_t zeroBasedInterface, void *mac, size_t size)
 Get MAC address. More...
 
const struct
vardef_values_interface * 
ltrx_network_interface_configuration_get (uint8_t zeroBasedInterface)
 Get Interface configuration. More...
 
const char * ltrx_network_interface_get_name (uint8_t zeroBasedInterface)
 Get Interface name. More...
 

Detailed Description

Network contains the definitions related to networking.

Function Documentation

bool ltrx_network_get_mac_address ( uint8_t  zeroBasedInterface,
void *  mac,
size_t  size 
)

Get MAC address.

Return values
trueSuccess.
falseFailed.
Parameters
[in]zeroBasedInterfaceSpecifies interface to get the MAC for.
  • NETS_SOFTAP_START for ap0.
  • NETS_ETHERNET_START for eth0.
  • NETS_WLAN_START for wlan0.
[out]macReceives the binary MAC address.
[in]sizeSize of mac to be filled in.
const struct vardef_values_interface* ltrx_network_interface_configuration_get ( uint8_t  zeroBasedInterface)

Get Interface configuration.

Returns
Structure containing Interface configurables.
Parameters
[in]zeroBasedInterfaceSpecifies interface to check.
  • NETS_SOFTAP_START for ap0.
  • NETS_ETHERNET_START for eth0.
  • NETS_WLAN_START for wlan0.
const char* ltrx_network_interface_get_name ( uint8_t  zeroBasedInterface)

Get Interface name.

Returns
Interface name.
Parameters
[in]zeroBasedInterfaceSpecifies interface to check.
  • NETS_SOFTAP_START for ap0.
  • NETS_ETHERNET_START for eth0.
  • NETS_WLAN_START for wlan0.