I'm would design a software that do these things ( in order ) :
1- wake up from deepslip without RF (called like this: node.dsleep (600 million, 4)
2- DHT22 sensor reading,
3- Turn on WiFi and connect to AP
4- Data sent via MQTT
5- goes back into deepslip. ( no rf, option ,4 )
I am having great difficulty for the step 3 ...
my software wake up properly without wifi (drain only 15 mA ..), then properly get data from DHT22, but i do not know how to turn on WiFi and connect to AP.
I'm looking for this type of design because I prefer to read DHT22 with no noise in power supply (normaly the WiFi features cause a lot of HiFreq ripple on line 3.3 volts.)
Can anyone help me and give an example of how you wake the wifi inside a lua script?
Thanks in advence,
Fabrizio.