Changeset 95

Show
Ignore:
Timestamp:
12/08/07 03:26:37 (12 months ago)
Author:
follower
Message:

Convert MAC address configuration to class method.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde

    r94 r95  
    107107    void setMask(byte b0, byte b1, byte b2, byte b3); 
    108108    void setGateway(byte b0, byte b1, byte b2, byte b3); 
     109    void setMac(byte b0, byte b1, byte b2, byte b3, byte b4, byte b5); 
    109110   
    110111  private: 
     
    206207} 
    207208 
     209void Wiz810MjDevice::setMac(byte b0, byte b1, byte b2, byte b3, byte b4, byte b5) { 
     210  /* 
     211   
     212   */ 
     213  setSHAR(_packBuffer(b0, b1, b2, b3, b4, b5));   
     214} 
    208215 
    209216/* ----------------------- */ 
     
    234241  byte config_mac_address[] = {0x02,0xDE,0xAD,0xBE,0xEF,0x00}; 
    235242  byte config_ip_address[] = {192,168,2,105}; 
     243 
     244  WIZ810MJ.setMac(0x02,0xDE,0xAD,0xBE,0xEF,0x00); 
    236245    
    237   setSHAR(config_mac_address); 
    238246  WIZ810MJ.setIp(192,168,2,105); 
    239247  WIZ810MJ.setMask(255,255,255,0);