Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting compile error message #3

Open
rajbadri opened this issue Aug 7, 2015 · 5 comments
Open

getting compile error message #3

rajbadri opened this issue Aug 7, 2015 · 5 comments

Comments

@rajbadri
Copy link

rajbadri commented Aug 7, 2015

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.

@biohazardxxx
Copy link
Owner

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 *);

@rajbadri
Copy link
Author

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

@rajbadri
Copy link
Author

another question : can i give the esp a fixed ip address

Thanks again

@biohazardxxx
Copy link
Owner

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 [email protected]:

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)
.

@rajbadri
Copy link
Author

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants