wifi 무선인터넷 쉴드를 구입하고 납땜을 하였습니다
그리고 uno R3에 꽂아서 usb 에 연결한다음 인터넷에 나와있는 예제소스를 이용하여서
접근하였습니다.
예제소스)
#include "WiFly.h"
#include "Credentials.h"
void setup() {
Serial.begin(9600);
Serial.println("\n\r\n\rWiFly Shield Terminal Routine");
WiFly.begin();
if (!WiFly.join(ssid, passphrase)) {
Serial.println("Association failed.");
while (1) {
// Hang on failure.
}
}
Serial.println("Associated!");
}
void loop() {
// Terminal routine
// Always display a response uninterrupted by typing
// but note that this makes the terminal unresponsive
// while a response is being received.
while(SpiSerial.available() > 0) {
Serial.print(SpiSerial.read(), BYTE);
}
if(Serial.available()) { // Outgoing data
SpiSerial.print(Serial.read(), BYTE);
}
}
하고 Credentials.h 이 헤더파일안에
char passphrase[] = "wpxk1234"; // 공유기암호
char ssid[] = "myhome"; // 무선네트워크 공유기이름
testing 을 하였는데 wifly.begin() 에서 멈추고 나머지 작업을 진행을 하지 않더군요
접속실패에 대한 메세지도 안뜨고 WiFly Shield Terminal Routine 이란 시리얼 메세지만 뜨고
나머지 작동을 하지 않습니다.. 문재가 무엇인지 참 난감하네요;;
아. 참고로 아두이노 sketch 0023 에서 돌렸습니다(라이브러리문제로)
회원에게만 댓글 작성 권한이 있습니다.