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

Problem with #define ESP8266 #17

Open
dronecz opened this issue Jun 23, 2016 · 8 comments
Open

Problem with #define ESP8266 #17

dronecz opened this issue Jun 23, 2016 · 8 comments

Comments

@dronecz
Copy link

dronecz commented Jun 23, 2016

Hi @washo4evr

I want to use your library but I can not get rid of this error:

#error "above your includes like so : #define ESP8266 ". I did find older library where I donť have to define this but I want use most up to date library.

Also, could by posible use client.send("list")? I can now use your library like this: client.send("list", "list", "list")

Here is my Arduino code:

new.txt

Many thanks for reply.

@minithc
Copy link

minithc commented Jun 24, 2016

#ifndef W5100 || ENC28J60 || ESP8266
seems to be incorrect

#ifndef ESP8266
work for me.

This way the wifi library included, I checked it.

@minithc
Copy link

minithc commented Jun 24, 2016

I suddenly realized that I've seen your messages in cnc.js project.

Do you do the same as me? The fat html sender / thin server (i.e. ESP8266)?
I just spent last week only to realize NodeMCU will not work for me due to its heap size. So I turned to search another solutions. It is still unclear will this fly or not, probably the html client will have to send the code into ESP in small portions. ChiliPeppr have a specific memory management for ESP8266 too. Anyway, I would like to talk with you / [email protected]

@washo4evr
Copy link
Owner

hi guys,
sorry for the late reply

you need to use "#define ESP8266;"
in your new.txt file, it didnt have a ';'

I mainly use the ESP8266 to collect data from sensors ans then transmit to the server
I have a UDOO quad board (faster than raspberry)
and the UDOO gives order to the ESP8266
everything is as short as possible

@dronecz
Copy link
Author

dronecz commented Jun 29, 2016

Hi @washo4evr

we sorted out with @minithc so it is working now, but I think would be good to make better info in wiki.
I want to also ask you if is your library still in development and uptodate with Socket.io API? I´m not programmer so I don´t know how to check it.

Many thanks

@washo4evr
Copy link
Owner

Hi,
I do consider the project open and alive. That being said, I have a lot on my plate right now, which is why neither the library not the wiki have been updated in a while.
I really need to get back to it as I see more and more people using my work.

@ricklon
Copy link

ricklon commented Aug 7, 2016

In Arduino 1.6.9 didn't detect the define. Defines do not require ";"

Should use in the .h file:
#if defined(ESP8266)

Also, the ifndef replaced by:
`#if !defined(ESP8266)``

Is much cleared and seems to work.

@ricklon
Copy link

ricklon commented Aug 7, 2016

OK. Did more checking. The problem is definitely in the "ifndef" check.

@washo4evr
Copy link
Owner

Hey
Thanks for your input
I have updated the library

Florent

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

No branches or pull requests

4 participants