The best way to reduce power is to stay disconnected from WiFi with the ESP8266 off for as long as possible, but there are some AT commands that might help. AT+RFPOWER and maybe AT+RFVDD look promising, but I'm not sure if there are any others.
To send the command, try:
wifi.at.cmd("AT+RFPOWER=50\r\n", 1000/*a timeout in ms*/, function(d) {
if (d=="OK") console.log("All Ok.");
else console.log("Error",d);
});
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Yes, absolutely! The WiFi module on Espruino WiFi is a standard ESP8266 running AT command firmware - and the docs for it are here: https://www.espressif.com/sites/default/files/documentation/4a-esp8266_at_instruction_set_en.pdf
The best way to reduce power is to stay disconnected from WiFi with the ESP8266 off for as long as possible, but there are some AT commands that might help.
AT+RFPOWER
and maybeAT+RFVDD
look promising, but I'm not sure if there are any others.To send the command, try: