The adverse impacts of using conventional batteries in the Internet of Things (IoT) devices, such as cost-effective maintenance, numerous battery replacements, and environmental hazards, have led to an interest in integrating energy harvesting technology into IoT devices to extend their lifetime and sustainably effectively. However, this requires improvements in different IoT protocol stack layers, especially in the MAC layer, due to its high level of energy consumption. These improvements are essential in critical applications such as IoT medical devices. In this paper, we simulated a dense solar-based energy harvesting Wi-Fi network in an e-Health environment, introducing a new algorithm for energy consumption mitigation while maintaining the required Quality of Service (QoS) for e-Health. In compliance with the upcoming Wi-Fi amendment 802.11be, the Access Point (AP) coordination-based optimization technique is proposed, where an AP can request dynamic resource rescheduling along with its nearby APs, to reduce the network energy consumption through adjustments within the standard MAC protocol. This paper shows that the proposed algorithm, alongside using solar energy harvesting technology, increases the energy efficiency by more than 40% while maintaining the e-Health QoS requirements. We believe this research will open new opportunities in IoT energy harvesting integration, especially in QoS-restricted environments.