SEN0539: Start awake and stay awake Arduino Uno

I'm looking for a way to start the device awake and keep it awake. I've tried a few things that didn't work. I've experimented both in I2C and UART.
For starting awake:
Don't know the command for I2C
for UART
asr.settingCMD(DF2301Q_UART_MSG_CMD_SET_ENTERWAKEUP, 0);
doesn't seem to do anything
For staying awake
I've tried a looping function that repeatedly calls either asr.setWakeTime(20) in I2C or asr.settingCMD(DF2301Q_UART_MSG_CMD_SET_WAKE_TIME, 20); but these do not renew the wake time.
2025-05-02 04:25:49
David.Welch
Nevermind. I don't think I ultimately want this functionality. It would be too sensitive and the commands would execute without intent.

View Arduino ProductsMore Arduino Related ProjectsArduino TutorialsMore Gravity ProjectsView Gravity Products