diff --git a/src/ibmiotf/device.py b/src/ibmiotf/device.py index 709b327f..f70bd168 100644 --- a/src/ibmiotf/device.py +++ b/src/ibmiotf/device.py @@ -189,7 +189,7 @@ def __subscribeToCommands(self): self.logger.warning("Unable to subscribe to commands because device is not currently connected") return False else: - self.client.subscribe(COMMAND_TOPIC, qos=1) + self.client.subscribe(Client.COMMAND_TOPIC, qos=1) return True def __onCommand(self, client, userdata, pahoMessage):