Leveraging Stack4Things for Federated Learning in Intelligent Cyber Physical Systems