Go Down

Topic: Ethernet.h library Ethernet Network Module (Read 16 times) previous topic - next topic

skeetas1

I have been struggling with adding the ethernet shield 2  the device card address to the  address code shown below.

byte mac[] = { 0xA8,0x61,0x0A,0xAE,0x85,0xC4 }; //this is one of my attempts.

The address on the card is  A8:61:0A:AE:85:C4

I am attempting a simple project i.e. switching a LED on & off (D2 to Ground).
I would appreciate some help as it seems my computer is not finding the address. 
The shield LED indicators appear to be functioning correctly.



ballscrewbob

@skeetas1

TOPIC SPLIT
PLEASE DO NOT HIJACK / NECRO POST !


Could you take a few moments to Learn How To Use The Forum.

Other general help and troubleshooting advice can be found here.
It will help you get the best out of the forum in the future.


It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google (who would have thunk it ! ) or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

johnwasser

Are you using one of the Ethernet Library examples?  Which one?  "WebServer"?  Are you using the IP address 192.168.1.177 that is used in that example? Are your router and DNS Server at 192.168.1.0?  If not, you have to specify the DNS Server and Gateway Router addresses in Ethernet.begin().
https://www.arduino.cc/en/Reference/EthernetBegin

Does your router's address on the LAN start with 192.168.1?  If not, you need to pick an address that is on your network.
Send Bitcoin tips to: 1G2qoGwMRXx8az71DVP1E81jShxtbSh5Hp
See who has no social life: https://forum.arduino.cc/index.php?action=stats :)

Go Up