washo4evr / Socket.io-v1.x-Library

Socket.io Library for Arduino
108 stars 58 forks source link

Can I use this library in other boards? #20

Open dragonic09 opened 8 years ago

dragonic09 commented 8 years ago

Hello I'm kind of confuse with the libs. Can I use this libs in other boards such as Arduino Leonado that connected to ESP8266? or I can only use it in ESP8266. When I tried to burn esp8266 example to my Arduino Leonado I always got a "not define interfaces" problem, even though I already defined ESP8266 in the example. I tried both "#define ESP8266" and "#define ESP8266;" when I switched to Arduino Leonado, but I still got the same problem. When I used "GENERIC ESP8266 MODULE" even if I didn't define ESP8266 ,I can verify the codes.

Thank you

washo4evr commented 8 years ago

Hi,

the library works on arduino uno and mega it can work on arduino nano but because of the low memory, it is more difficult

define helps you select what LAN board you have (W5100, ENC28J60, ESP8266)

usually, shields for uno / mega use w5100 nano uses ENC28J60

let me know if I can assist you more to get started :)

dragonic09 commented 8 years ago

I don't have w5100 or ENC28J60, but I have ESP8266.Can I use arduino uno/leonado with ESP8266 instead?

washo4evr commented 8 years ago

are you trying to use the ESP8266 as a wifi shield? I would suggest to program the ESP directly for now, 1 user tried to use the ESP as a wifi shield and it didnt work I never tried it directly

dragonic09 commented 8 years ago

Thank you for the answers. I think I will try to program the ESP directly first. If it doesn't work, I think I have to buy a wifi shield.XD

washo4evr commented 8 years ago

I would recommend something like that

http://www.banggood.com/Mini-NodeMCU-ESP8266-WIFI-Development-Board-Based-On-ESP-12F-p-1054209.html

this is what I have been using for a while now works great if you only need 10 digital IOs or so

dragonic09 commented 8 years ago

Did you use Mini Node MCU as a wifi shield or stand alone?

washo4evr commented 8 years ago

Hi I mostly use the same board I linked before. The ESP8266 as a standalone works perfectly for me If I ever need more IOs, I would probably use a Arduino Mega or Due with wifi shield

alxferraz commented 7 years ago

Hi guys, Im trying to use a Nodemcu (standalone) to connect to a web socket via Wifi OR Enc28j60. I had no succeeded so far. Any ideias?

washo4evr commented 7 years ago

the nodemcu uses the ESP8266 you should be able to use the library as is on the 8266

What did you try?

alxferraz commented 7 years ago

I need to be able to connect to the socket via enc28j60 or wifi (user will choose) and it has to be done using nodemcu as the mcu.