Skip to content

[Buttplug 5.0.0] StopAsync() sends the wrong version command message "StopDeviceCmd" instead of "StopCmd" #693

@FapHeroMan

Description

@FapHeroMan

Library: Buttplug 5.0.0
Intiface Central: 3.0.1

StopAsync() command sends the wrong message to Intiface Central and encounters error on Intiface side(no error encountered on client side)

"Got invalid messages from remote Buttplug connection - Message: Text("[{"StopDeviceCmd":{"DeviceIndex":0,"Id":10}}]") - Error: JsonSerializerError("Message: [{"StopDeviceCmd":{"DeviceIndex":0,"Id":10}}] - Error: Error("unknown variant StopDeviceCmd, expected one of RequestServerInfo, Ping, StartScanning, StopScanning, RequestDeviceList, StopCmd, OutputCmd, InputCmd", line: 0, column: 0)")".

And a device was not stopped.

Here is the code to reproduce.

            foreach(ButtplugClientDevice device in client.Devices)
            {
                device.StopAsync();
            }

The attached pic is the result from Intiface Central.
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions