A Learning Approach for Joint Design of Event-triggered Control and Power-Efficient Resource Allocation