Text this: Federated learning resource management for energy-constrained industrial IoT devices