ESP8266-Websocket icon indicating copy to clipboard operation
ESP8266-Websocket copied to clipboard

Library ESP8266WiFi.h missing in WebSocketClient_Demo.ino

Open silvestret opened this issue 8 years ago • 5 comments

I have an Arduino UNO R3 and a module ESP8266 connected(RX= pin 3 and TX= pin 2). I attached an image of my sketch. Does your library will work with this sketch? if so, where can i get library ESP8266WiFi.h ?

Thanks esquema a arduino 1

silvestret avatar Jul 04 '16 04:07 silvestret

Are you trying to load this sketch onto the Arduino then? It doesn't have the right architecture for this sketch. This needs to be loaded onto the esp directly.

morrissinger avatar Jul 04 '16 15:07 morrissinger

Oh ok, so the board in arduino would be esp8266. I got the esp8266 of this photo. s-l225

So, your library is for esp8266 board, and it will not work with my esp8266 arduino module. I am right?

silvestret avatar Jul 04 '16 15:07 silvestret

Exactly. You have to set the board in your IDE to ESP8266, which is going to draw on a different set of libraries. Then, the way I have done it is to hook up the ESP through an FTDI board/cable to the USB on my laptop. If I recall, there is a pin on the ESP you have to pull down in order to get the chip to accept a firmware flash.

morrissinger avatar Jul 04 '16 17:07 morrissinger

Thank you so much for your response!

Greetings

silvestret avatar Jul 04 '16 19:07 silvestret

@morrissinger What if I want to load the sketch into Arduino? Do you know any other library that will work with this. Because the GPIO pins on ESP are not enough, so I will have to use Arduino board probable UNO or MEGA

karanmakharia avatar Nov 11 '16 13:11 karanmakharia