Hello everyone,
I am working on a project where i have to transmit the sensor data through esp8266(wifi module) and go in hibernation for specified time. When the code runs for 1st time I am getting the values and controller goes in the hibernation. But when it comes out of hibernation it does not transmit and displays link is not valid. It also re-initiates the program instead of continuing with the flow. I don't want to re-initiate and my data should go through esp after coming out from hibernation.
here is the part of my code
int main(void)
{
SysCtlClockSet(SYSCTL_SYSDIV_5|SYSCTL_USE_PLL|SYSCTL_XTAL_16MHZ|SYSCTL_OSC_MAIN);
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOF);
HibernateEnableExpClk(SysCtlClockGet());
HibernateGPIORetentionEnable();
HibernateRTCEnable();
HibernateRTCSet(0);
HibernateRTCEnable();
HibernateRTCMatchSet(0,10);
HibernateWakeSet(HIBERNATE_WAKE_PIN | HIBERNATE_WAKE_RTC );
and after sending data through esp8266 i am going in hibernation through HibernateRequest();
please review and help.
thank you in advance.