Update EmacTestNetworkStack

-Uncomment get_mac_address
-Document set_mac_address
pull/13936/head
Arto Kinnunen 2020-11-25 09:17:20 +02:00
parent 636c19af16
commit 9ede631e76
1 changed files with 10 additions and 1 deletions

View File

@ -84,8 +84,17 @@ public:
*
* @return MAC address as "V:W:X:Y:Z"
*/
//virtual char *get_mac_address(char *buf, nsapi_size_t buflen);
virtual char *get_mac_address(char *buf, nsapi_size_t buflen);
/** Set MAC address on the network interface
*
* @param mac_addr Buffer containing the MAC address in hexadecimal format.
* @param addr_len Length of provided buffer in bytes (6 or 8)
* @retval NSAPI_ERROR_OK on success
* @retval NSAPI_ERROR_UNSUPPORTED if this feature is not supported
* @retval NSAPI_ERROR_PARAMETER if address is not valid
* @retval NSAPI_ERROR_BUSY if address can't be set.
*/
virtual nsapi_error_t set_mac_address(uint8_t *mac_addr, nsapi_size_t addr_len);
/** Copies IP address of the network interface to user supplied buffer