Edge computing for industrial control