randomsync / robotframework-mqttlibrary

MQTT Keyword Library for Robot Framework
Apache License 2.0
25 stars 30 forks source link

Wait for subscribe to complete before listening #20

Closed randomsync closed 4 years ago

randomsync commented 4 years ago

This fixes the issue when listening right after subscribing, which if it happens too quickly doesn't let the on_subscribe callback finish and returns an error that the client isn't subscribed. Now, waiting until timeout to let the callback complete.

Fixes #15