Integrating MQTT and AMQP with AI for IoT Protocols