Light sleep while waiting for I2C data

Gtracks
Posts: 5
Joined: Sun Jun 25, 2017 8:12 pm

Light sleep while waiting for I2C data

Postby Gtracks » Thu Oct 26, 2017 4:54 pm

I am using WROOM 32 module to send some sensor data to a remote server. The data is sent at a 50 Hz rate to the server. Every 20 ms module fetches data from I2C and sends over UDP to the server. The message payload size is 100 bytes. I am interested in utilizing Light sleep mode when the chip is idle waiting for data from I2C. When forcing the module to go into Light Sleep it seems that you need to disconnect from the AP and then connect to the AP again, which can easily take 0.5 to 1 seconds.

Is there a way to force the module into LightSleep without having to disconnect from the AP. The module is in STA Mode.

thanks

Who is online

Users browsing this forum: liaifat85, StanInexeon and 108 guests