шилд Ethernet ENC28J60
- Войдите на сайт для отправки комментариев
Чт, 07/04/2016 - 18:21
Всем привет!
пытался залить такой скетч:
#include "etherShield.h"
#include "ETHER_28J60.h"
static uint8_t mac[6] = {0x74,0x69,0x69,0x2D,0x30,0x31};
static uint8_t ip[4] = {192,168,0,103};
static uint16_t port = 80;
ETHER_28J60 ethernet;
void setup()
{
ethernet.setup(mac, ip, port);
}
void loop()
{
if (ethernet.serviceRequest())
{
ethernet.print("<H1>Hello World</H1>");
ethernet.respond();
}
delay(100);
}
но при коспиляции выдает такую ошибку:
In file included from D:\arduino\libraries\etherShield/etherShield.h:25:0,
from C:\Users\max\Desktop\web\web.ino:1:
D:\arduino\libraries\etherShield/ip_arp_udp_tcp.h:32:66: error: 'prog_char' does not name a type
extern uint16_t fill_tcp_data_p(uint8_t *buf,uint16_t pos, const prog_char *progmem_s);
^
D:\arduino\libraries\etherShield/ip_arp_udp_tcp.h:32:77: error: ISO C++ forbids declaration of 'progmem_s' with no type [-fpermissive]
extern uint16_t fill_tcp_data_p(uint8_t *buf,uint16_t pos, const prog_char *progmem_s);
^
In file included from C:\Users\max\Desktop\web\web.ino:1:0:
D:\arduino\libraries\etherShield/etherShield.h:34:65: error: 'prog_char' does not name a type
uint16_t ES_fill_tcp_data_p(uint8_t *buf,uint16_t pos, const prog_char *progmem_s);
^
D:\arduino\libraries\etherShield/etherShield.h:34:76: error: ISO C++ forbids declaration of 'progmem_s' with no type [-fpermissive]
uint16_t ES_fill_tcp_data_p(uint8_t *buf,uint16_t pos, const prog_char *progmem_s);
^
C:\Users\max\Desktop\web\web.ino: In function 'void loop()':
C:\Users\max\Desktop\web\web.ino:26:42: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ethernet.print("<H1>Hello World</H1>");
^
exit status 1
Error compiling.
кто знает в чем проблема, отпишитесь)
Ну, там же написано: 'prog_char' does not name a type
Вам здесь непонятно какое-то слово или что?
слова я то понимаю
не понимаю только то, что с этим делать
все раздублился)
спасибо
Привет такаеже проблема не подскажешь как решил ?))))