Welcome!

This community is for professionals and enthusiasts of our products and services. Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

0

Dónde puedo hallar la MAC address del Ethernet?

By
Guest
on 7/23/18, 11:34 AM 214 views

Compramos 6 M-Duino 58+ Ethernet PLC en ninguno de ellos pudimos localizar la MAC Address, de que manera podemos obtener esta para hacer uso de la conectividad por ethernet?

Saludos

0

Alejandro Jabalquinto

--Alejandro Jabalquinto--

1000000016
| 0 0 0
--Alejandro Jabalquinto--
Alejandro Jabalquinto
On 7/23/18, 11:35 AM

Hola,

La MAC se define por software, es decir que pueden elegir aquella que quieran. Le dejo un ejemplo aquí:

#include <Ethernet2.h>
#include <SPI.h>
byte _mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xEA };
byte _ip[] = {10, 20, 30, 15};
byte _server[] = {216, 58, 201, 132};

/////////////////////////////////////////////////////////////////////////////
void setup() {
  Serial.begin(9600L);
  Serial.println("mduino-plus Ethernet test started");
  Ethernet.begin(_mac, _ip);
  Serial.print("IP: ");
  Serial.println(Ethernet.localIP());
}

Esta información ha sido extraída de nuestro blog:

Ethernet test on M-Duinos PLUS version


Espero haber solucionado su duda,

  • Flag

Perfecto, gracias!

Guest
on 7/23/18, 11:35 AM

Keep Informed

About This Community

This community is for professionals and enthusiasts of our products and services. Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together. Read Guidelines

Question tools

3 follower(s)

Stats

Asked: 7/23/18, 11:34 AM
Seen: 214 times
Last updated: 12/5/18, 1:51 PM