มีปัญหาเรื่อง codeครับ คือผมลอง code ตามตัวอย่าง web remote
มันขั้น error ว่า ether_28j60 not name a type
ไม่ทราบว่าแก้ยังไงครับ ขอบคุณครับ
code ที่ใช้ตามตัวอย่าง
#include "etherShield.h"
#include "ETHER_28J60.h"
int outputPin = 6;
static uint8_t mac[6] = {0x54, 0x55, 0x58, 0x10, 0x00, 0x24}; // this just needs to be unique for your network,
static uint8_t ip[4] = {192, 168, 0, 15}; // ฟิก IP ตรงนี้ IP address for the webserver
static uint16_t port = 80; // Use port 80 - the standard for HTTP
ETHER_28J60 e;
void setup()
{
e.setup(mac, ip, port);
pinMode(outputPin, OUTPUT);
}
void loop()
{
char* params;
if (params = e.serviceRequest())
{
e.print("Arduino Web Remote");
if (strcmp(params, "?led=on") == 0)
{
digitalWrite(outputPin, HIGH);
e.print("LED IS ON");
}
else if (strcmp(params, "?led=off") == 0)
{
digitalWrite(outputPin, LOW);
e.print("LED IS OFF");
}
e.respond();
}
}
ether_28j60 not name a type error นี้แปลว่ามองไม่เห็นออปเจก อาจจะยังลงไลบารีไม่ถูกครับ
ผมทดสอบโคดให้แล้ว ถ้าลงไลบารีถูกจะคอมไพล์ผ่านใช้งานได้ครับ