First, thamk you for your time and help.
I would like to reduce the power consumption by using the sleep mode.
I used this function :
system_deep_sleep_set_option(0);
system_deep_sleep(5 * 1000000);
This function works ok and reduces consumption to 0.1mA if I use
However, it only reduces consumption from 90mA to 20mA when I use
The difference between the two is that the second Nodemcu has a UARTtoUSB module. So I suppose that this is what causes the power consumption during the sleep mode.
Would it be possible to make the second one only consume 0.1mA as well ?