This is my first post here so I'm not sure if this is the correct place to put this question, so here it goes.
I'm working on a project using arduino uno and an ESP8266-01 module connected to the arduino (VCC and CH_PD to 3.3V, RXD to D1 with voltage divider inbetween [1k and 2.2k resistors], TXD to D0, and GND to arduino's GND). I've been looking for a way to put the ESP in deep-sleep mode (which I know also requires me to solder the ESP's Reset pin to its own extremely-tiny GPIO 16 pin), but all the code I've seen uses the ESP.deepSleep() method from the ESP8266WiFi.h library which, as far as I know, requires me to set the Board setting in the Arduino IDE to "Generic ESP8266 Module", leaving me unable to upload the code to the arduino.
My question is, is there any code that lets me put the ESP in sleep mode through the arduino? Or is it impossible?
I've also tried to connect the VCC and CH_PD pins to one of the arduino's digital pins (with the 1k and 2.2k resistors voltage divider in between) to be able to turn it on and off through code, and other combinations like both pins to two different digital pins, or the VCC in the 3.3V and the CH_PD to a digital pin, or the CH_PD to the 3.3V and the VCC to a digital pin, but the ESP either doesn't work correctly (my phone doesn't detect the wifi signal) or it doesn't even turn on at all. Any suggestions if the deep-sleep mode is unavailable?