|
|
|
@ -106,6 +106,7 @@ class Wiz810MjDevice {
|
|
|
|
|
void setIp(byte b0, byte b1, byte b2, byte b3);
|
|
|
|
|
void setMask(byte b0, byte b1, byte b2, byte b3);
|
|
|
|
|
void setGateway(byte b0, byte b1, byte b2, byte b3);
|
|
|
|
|
void setMac(byte b0, byte b1, byte b2, byte b3, byte b4, byte b5);
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
void _init(void);
|
|
|
|
@ -205,6 +206,12 @@ void Wiz810MjDevice::setGateway(byte b0, byte b1, byte b2, byte b3) {
|
|
|
|
|
setGAR(_packBuffer(b0, b1, b2, b3));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Wiz810MjDevice::setMac(byte b0, byte b1, byte b2, byte b3, byte b4, byte b5) {
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
setSHAR(_packBuffer(b0, b1, b2, b3, b4, b5));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ----------------------- */
|
|
|
|
|
|
|
|
|
@ -233,8 +240,9 @@ void setup () {
|
|
|
|
|
byte config_subnet_mask[] = {255,255,255,0};
|
|
|
|
|
byte config_mac_address[] = {0x02,0xDE,0xAD,0xBE,0xEF,0x00};
|
|
|
|
|
byte config_ip_address[] = {192,168,2,105};
|
|
|
|
|
|
|
|
|
|
WIZ810MJ.setMac(0x02,0xDE,0xAD,0xBE,0xEF,0x00);
|
|
|
|
|
|
|
|
|
|
setSHAR(config_mac_address);
|
|
|
|
|
WIZ810MJ.setIp(192,168,2,105);
|
|
|
|
|
WIZ810MJ.setMask(255,255,255,0);
|
|
|
|
|
WIZ810MJ.setGateway(192,168,2,101);
|
|
|
|
|