lpcmanager
Clone
Summary
Browse
Changes
Graph
Add check_if_url_is_reachable POU to test whether input URL returns status 200 when invoked from PLC
py2compat
10 months ago, Dino Kosic
d7d8098e92f7
Add check_if_url_is_reachable POU to test whether input URL returns status 200 when invoked from PLC
if(!pthread_mutex_lock(&UART_ReadMutex)){
int prevstate;
if((prevstate=uartDevReadBuf_plc_state) == FULL){
uartDevReadBuf_plc_state = LOCKED;
}
pthread_mutex_unlock(&UART_ReadMutex);
if(prevstate == FULL){
%(retrieve_code)s
/* unlock plc buffer */
uartDevReadBuf_plc_state = EMPTY;
}else{
/* No new data -> no update */
}
}