def enable_notifications(self, enabled=True):
try:<EOL><INDENT>if enabled:<EOL><INDENT>self._object.StartNotify(<EOL>reply_handler=self._enable_notifications_succeeded,<EOL>error_handler=self._enable_notifications_failed,<EOL>dbus_interface='<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>self._object.StopNotify(<EOL>reply_handler=self._enable_notifications_succeeded,<EOL>error_handler=self._enable_notifications_failed,<EOL>dbus_interface='<STR_LIT>')<EOL><DEDENT><DEDENT>except dbus.exceptions.DBusException as e:<EOL><INDENT>self._enable_notifications_failed(error=e)<EOL><DEDENT>
Enables or disables value change notifications.

Success or failure will be notified by calls to `characteristic_enable_notifications_succeeded`
or `enable_notifications_failed` respectively.

Each time when the device notifies a new value, `characteristic_value_updated()` of the related
device will be called.