HI,
If I insert in the main loop (in the connection branch) the instruction "idle_state_handle();"
for (;;)
{
if (flag_connected==0)
{
idle_state_handle();
}
else
{
idle_state_handle();
.....
.....
}
after the first connection, without send or receive nothing, the connection is self closed after 5 minut and 28 second
if I remove the instruction the connection is always ON.
I need to insert the instruction because with this the power comsuction is 0,5 mA, otherwise 5 mA.
Why with the instruction " idle_state_handle();" the conncection is lost it self ?
I'm using SDK 15.0.0 and SD 6.0
Marco