1.Can i use this library with esp and external atmega ?
2. Is there a esp8266 library for arduino , that you dont need to flash a new program on the esp ? works out of the box ?
Well we used to work with the nodemcu . We would like to proceed to mass production .
Flashing the esp with hardware is another stage in the process that we want to skip .
So i was looking for a stable library , that is not requiring any flashing of firmware , and than can do
everything needed( including sleep/awake , set esp as a softAP, and send http requests) .
I'm thinking about equipping my Nano with the esp8266 to get WiFi and send data to the Nano via a webserver. E.g. change motor speed or what ever.
Did you try the library or did you find a good one?
For your purposes, this is my favorite: GitHub - bportaluri/WiFiEsp: Arduino WiFi library for ESP8266 modules. The only thing I don't like about it is the author left Serial debug output on by default. If you want to connect the ESP8266 to your Nano via Serial then you will need to turn this output off before the library will work. If you're not using Serial then I still recommend turning it off to save memory and avoid unnecessary delays once you have things working correctly. To turn it off you need to change src/utility/debug.h line 31(WiFiEsp/src/utility/debug.h at master · bportaluri/WiFiEsp · GitHub) from:
#define _ESPLOGLEVEL_ 3
to:
#define _ESPLOGLEVEL_ 0
Remember to repeat this process any time you update to a new version of the library.