Save energy.Turning off WiFi
Posted: Sat May 25, 2019 9:48 pm
To manage WiFi, you need to change the function name call_user_start in the library libmain.a, for example, to the name call2user_start, correct one byte in two places, and insert the following function into your program:
--------
void call_user_start()
{
volatile uint32 * rtc = ((uint32 *) 0x60000700); rtc [4] = 0; rtc [0] = 0;
// works here with sensors. ESP8266 current 15ma instead of 70ma
call2user_start ();
}
--------
void call_user_start()
{
volatile uint32 * rtc = ((uint32 *) 0x60000700); rtc [4] = 0; rtc [0] = 0;
// works here with sensors. ESP8266 current 15ma instead of 70ma
call2user_start ();
}