The easiest way of installing the WiFiEsp library in the Arduino IDE is using the Arduino Library Manager.
Launch the Arduino IDE and select Sketch - Include Library - Manage Libraries
The Arduino Library Manager will open. All you have to do is search for 'WiFiEsp' and hit the 'Install' button.
After the library has been installed you can open one of the examples.
Alternative download
If you want to manually install the library you can dowload it from GitHub and deal yourself with the installation process.
Hi, thank you for sharing knowledge!! I am trying to use AltSoftSerial (PRJC) to have 2 RS232 in arduinos 328 but it uses fixed 8 & 9 (I try/use 57600). You use 6 & 7 with SoftwareSerial. Do you think can I change your "serial settings" to AltSoft? can it work? only a question, just say no if not =) congratulations for this idea/work that permit us mere mortals use our libs and bad tricks in arduino and think in Iot ;)
ReplyDeleteYou can set any pins you want in SoftwareSerial initialization.
ReplyDeleteThis is available in the new version of the library.
You can set any pins you want in SoftwareSerial initialization.
ReplyDeleteThis is available in the new version of the library.
Ciao Bruno
ReplyDeletesto provando la tua libreria , ho fatto tutte le connessione come hai suggerito (ho messo un lm317 come regolatore di tensione per la vcc e un partitore di tensione sul pin7) ma ho sempre questo messaggio :
[WiFiEsp] Initializing ESP module
[WiFiEsp] >>> TIMEOUT >>>
[WiFiEsp] Cannot initialize ESP module
[WiFiEsp] >>> TIMEOUT >>>
[WiFiEsp] No tag found
********************************************** Firmware version > FAILED (actual="", expected="1.5.0")
puoi aiutarmi?
I think you have an old firmware.
DeleteAre you able to send AT commands manually?
http://www.instructables.com/id/Cheap-Arduino-WiFi-Shield-With-ESP8266/step3/Testing/
You can also try to enable tracing in WiFiEsp changing _ESPLOGLEVEL_ to 4 in WiFiEsp\src\utility\debug.h
Same problem here!
DeleteI set the ESP8266-01 to 9600 Baud and worked fine :)
PS. It was previously on 112K Baud which can be a problem for SOFTWARESERIAL
Sketch ClientTest return this:
ReplyDelete[WiFiEsp] Connecting to www.brainjar.com
********************************************** Connect to server > FAILED (actual=0, expected=1)
********************************************** Connected > FAILED (actual=0, expected=1)
********************************************** Response received > FAILED (actual=0, expected=1)
I'm getting this problem when I try and use the library:
ReplyDeleteIn file included from /Users/Ken/Dropbox/Projects/Arduino/libraries/WiFiEsp/src/WiFiEspServer.h:22:0,
from /Users/Ken/Dropbox/Projects/Arduino/libraries/WiFiEsp/src/WiFiEspServer.cpp:19:
/Applications/Arduino.app/Contents/Java/hardware/teensy/avr/cores/teensy3/Server.h:6:29: error: expected class-name before '{' token
class Server : public Print {
^
In file included from /Users/Ken/Dropbox/Projects/Arduino/libraries/WiFiEsp/src/WiFiEspServer.cpp:19:0:
/Users/Ken/Dropbox/Projects/Arduino/libraries/WiFiEsp/src/WiFiEspServer.h:53:15: error: type 'Print' is not a base type for type 'WiFiEspServer'
using Print::write;
^
Error compiling for board Teensy 3.2 / 3.1.
Solution:
Deletehttps://forum.pjrc.com/threads/33858-Teensy3-2-with-ESP8266?p=106340#post106340
Hello,
DeleteTrying ESP-01 with an UNO-R3, however, getting web socket assignment error! Pls help!! Thanks
Need help, When I try running the example code, the wifi ESP constantly says "timeout" and "No tag found". However it can successfully connect to the wifi. Why are there these error messages and how can i fix it?
ReplyDeleteThanks
Mine is a simple curiosity. By making simple tests with Esp01s and the examples of the library in question, I find clearly different values for RSSI; for example, once logged into a network, reading RSSI with Serial.print (WiFi.RSSI () I get -612 dBm while in the network list the value is -56dBm.
ReplyDeletewhy ?
same problem !! why ?
ReplyDelete