Statistics: Posted by Lars R. — Fri Dec 16, 2016 9:24 pm
Statistics: Posted by Mdb — Thu Dec 15, 2016 11:30 pm
Statistics: Posted by Lars R. — Mon Dec 05, 2016 11:59 pm
Statistics: Posted by Mdb — Mon Dec 05, 2016 5:07 pm
Code:
case SEND:
if ( xSemaphoreRd ) {
sprintf(localStr,"Debbio::WAIT_SEND::Sem releleased, executing op..\n");
DebbioPutStr(localStr);
//vTaskDelay(5/portTICK_RATE_MS);
if (connected){
if ( send ( sta_socket, pData, strlen(pData) + 1, MSG_DONTWAIT ) < 0){ /* Non blocking con DONTWAIT */
close(sta_socket);
sprintf(localStr,"Debbio::WAIT_SEND::Error not connected\n");
DebbioPutStr(localStr);
connected = false;
}
}
_xt_isr_unmask(1<<ETS_GPIO_INUM);
waitCb = true;
while( ! wifi_set_sleep_type(LIGHT_SLEEP_T) ) {}
xSemaphoreTake( xSemaphoreRd , portMAX_DELAY );
}
break;
Statistics: Posted by Mdb — Thu Dec 01, 2016 9:59 pm