Currently in Mexico in some road sections, there are still areas of non-coverage where the infrastructure does not supply communication alerts or dangerous situations to the population through telecommunication technologies, this is one of the problems faced by emergency services by the authorities. Given this scenario, the present project develops a system based on IoT that provides a secure means of real-time communication of messages under the AES 128 algorithm, obtained through hardware implementation, through the MQTT protocol under a C-V2X system, which is oriented for experimental scenarios where the intensity of the signal can generate communication losses. The proposed system has been designed to achieve greater coverage on road sections and meet emergency demands by citizens with the least possible delay, without compromising the security of messages of this nature under conditions of low signal intensity and avoiding possible attacks.