sskaje / mqtt

MQTT Client class
https://sskaje.me/category/MQTT/
MIT License
86 stars 33 forks source link

How I can get client id in subscribe.php? #33

Closed badmansan closed 5 years ago

badmansan commented 5 years ago

There is a lot of methods in subscribe.php:

            $publish_object->getMsgID(),
            $publish_object->getQoS(),
            $publish_object->getDup(),
            $publish_object->getTopic(),
            $publish_object->getMessage()

I need to know client id that publish message, is it possible?

badmansan commented 5 years ago

And answer is: no, it is not possible. This is protocol restriction. More details...