lpcmanager

e4eda7d98c03
Fix SmartehCloud updates applying multiple times when re-connecting.
Ensure that LPCMQTT command execution is serialized.
This is a consequence of duplicate messages sent at init.
Seems to happen either because server or client ignores "cleansession"/"cleanstart".
pthread_mutex_lock(&UART_WakeCondLock);
UART_task_active = 0;
pthread_cond_signal(&UART_WakeCond);
pthread_mutex_unlock(&UART_WakeCondLock);
pthread_join(UART_task, NULL);
closeserial(UART_fd);