2010년 7월 22일 목요일

master key

async command error_t CC2420SecControl.prepareRxSecurity(uint8_t *rx_buf)
함수에 m_myaddr = (am_addr_t)call amAddress(); 를 추가한다.


위치(vi CC2420SecControlP.nc )

이건 변장모드~
#include "node_config.h"
am_addr_t my_addr;

if(state == BUTTON_PRESSED){
inline_config[1]=0x02;
call PlatformControl.start();
my_addr = (inline_config[0] << 8)+ inline_config[1];
call ActiveMessageAddress.setAddress(0x22,my_addr);
}

댓글 없음:

댓글 쓰기