The document discusses the development of trm-rpl, a trust-based routing metric for the RPL routing protocol within industrial IoT environments, addressing security challenges and ensuring quality of service (QoS). It utilizes a multidimensional trust assessment approach that detects malicious behaviors, enhances routing resilience, and incorporates energy efficiency among its features. The proposed model has been successfully implemented and tested, demonstrating improved effectiveness against various routing attacks compared to the standard RPL protocol.