Control for Wireless Networked Systems with an application to mining ventilation