Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: DnsQuery
Dependents: WizFi310_TCP_Echo_Server_Example
Fork of NetworkSocketAPI by
Diff: NetworkInterface.cpp
- Revision:
- 59:badee747a030
- Parent:
- 56:19c9e332c0f1
- Child:
- 60:0360cb987da3
--- a/NetworkInterface.cpp Thu Feb 25 21:20:25 2016 -0600
+++ b/NetworkInterface.cpp Thu Feb 25 21:52:57 2016 -0600
@@ -19,64 +19,24 @@
#include "DnsQuery.h"
#include <string.h>
-NetworkInterface::NetworkInterface()
- : _dhcp_enabled(true)
-{
- memset(_ip_address, 0, NS_IP_SIZE);
- memset(_network_mask, 0, NS_IP_SIZE);
- memset(_gateway, 0, NS_IP_SIZE);
-}
-
-void NetworkInterface::setDHCP(bool enabled)
-{
- _dhcp_enabled = enabled;
-}
-
-void NetworkInterface::setIPAddress(const char *ip)
-{
- strcpy(_ip_address, ip);
-}
-
-void NetworkInterface::setNetworkMask(const char *mask)
-{
- strcpy(_network_mask, mask);
-}
-
-void NetworkInterface::setGateway(const char *gateway)
-{
- strcpy(_gateway, gateway);
-}
-
-bool NetworkInterface::getDHCP()
-{
- return _dhcp_enabled;
-}
-
const char *NetworkInterface::getIPAddress()
{
- if (_ip_address[0]) {
- return _ip_address;
- } else {
- return 0;
- }
+ return 0;
}
const char *NetworkInterface::getNetworkMask()
{
- if (_network_mask[0]) {
- return _network_mask;
- } else {
- return 0;
- }
+ return 0;
}
const char *NetworkInterface::getGateway()
{
- if (_gateway[0]) {
- return _gateway;
- } else {
- return 0;
- }
+ return 0;
+}
+
+const char *NetworkInterface::getMACAddress()
+{
+ return 0;
}
bool NetworkInterface::isConnected()
