def subscribeToDeviceStatus(self, typeId="<STR_LIT:+>", deviceId="<STR_LIT:+>"):
if self._config.isQuickstart() and deviceId == "<STR_LIT:+>":<EOL><INDENT>self.logger.warning("<STR_LIT>")<EOL>return <NUM_LIT:0><EOL><DEDENT>topic = "<STR_LIT>" % (typeId, deviceId)<EOL>return self._subscribe(topic, <NUM_LIT:0>)<EOL>
Subscribe to device status messages

# Parameters
typeId (string): typeId for the subscription, optional.  Defaults to all device types (MQTT `+` wildcard)
deviceId (string): deviceId for the subscription, optional.  Defaults to all devices (MQTT `+` wildcard)

# Returns
int: If the subscription was successful then the return Message ID (mid) for the subscribe request
    will be returned. The mid value can be used to track the subscribe request by checking against
    the mid argument if you register a subscriptionCallback method.
    If the subscription fails then the return value will be `0`