getting compile error message
rajbadri opened this issue · 5 comments
hi
i am getting this error message when i try to compile your sketch
Arduino: 1.6.5 (Mac OS X), Board: "Generic ESP8266 Module, Serial, 80 MHz, 40MHz, DIO, 115200, 4M (3M SPIFFS)"
In file included from sketch_aug07b.ino:31:0:
/Users/rajbadri/Documents/Arduino/libraries/PubSubClient/PubSubClient.h:80:46: error: section attribute not allowed for ''
boolean publish_P(char *, uint8_t PROGMEM *, unsigned int, boolean);
^
Error compiling.
Hi,
have you made sure to use the right pubSubClient version? https://github.com/vicatcu/pubsubclient
Because I have at line 80 in PubSubClient.h: boolean subscribe(char *);
i downloaded the pubsubclient from your link but getting the same error.
i deleted all references of PROGMEM from the library and now the sketch is compiling and running ok.
but is it ok to delete PROGMEM will it affect the working of esp8266
Thanks
another question : can i give the esp a fixed ip address
Thanks again
The simple way is to assign it within your DHCP settings at your router
config. But within the sketch you can achieve it with:
WiFi.begin(,);
IPAddress ip(192,168,1,124);
IPAddress gateway(192,168,1,1);
IPAddress subnet(255,255,255,0);
WiFi.config(ip, gateway, subnet);
but that would be static. Adding this as option to the webconfig would need
some more coding. I'll add it to the roadmap.
2015-08-11 5:58 GMT+02:00 Raj Badri notifications@github.com:
another question : can i give the esp a fixed ip address
Thanks again
—
Reply to this email directly or view it on GitHub
#3 (comment)
.
Thanks