Invia SMS: Generalized Predictive Control in PLC systems