I'm currently trying out some simple examples with the M-Duino Family PLC using Ethernet. I tried out eith 58+ Lora, 50RRA+ Lora and 38R+ Lora, and all of them didn't work out for me.
I don't know what i'm doing wrong and how troubleshoot this issue, any help would be appreciated. I wili post the snippet and the log.
Best regards.
//////////////////////////////////////////// CODE SNIPPET ////////////////////////////////////////////////
#include <SPI.h>
#include <Ethernet.h>
byte mac[] = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED};
IPAddress ip(10, 0, 0, 177);
void setup() {
// Open serial communications and wait for port to open:
Serial.begin(9600);
while (!Serial) {
; // wait for serial port to connect. Needed for native USB port only
}
Ethernet.begin(mac, ip);
Serial.println(Ethernet.hardwareStatus());
if (Ethernet.hardwareStatus() == EthernetNoHardware) {
Serial.println("Ethernet shield was not found.");
}
else if (Ethernet.hardwareStatus() == EthernetW5100) {
Serial.println("W5100 Ethernet controller detected.");
}
else if (Ethernet.hardwareStatus() == EthernetW5200) {
Serial.println("W5200 Ethernet controller detected.");
}
else if (Ethernet.hardwareStatus() == EthernetW5500) {
Serial.println("W5500 Ethernet controller detected.");
}
}
void loop () {}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////// LOG /////////////////////////////////////////////////////
- 0
- Ethernet shield was not found.
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////