Skip to content

UDP send marker example is incorrect #1270

@Purple-Fox-Coder

Description

@Purple-Fox-Coder

Problem

The send marker example sends a double

msg = struct.pack('!d', marker)

Expected

The example should instead send a float, as suggested by the documentation at:
https://docs.openbci.com/Software/OpenBCISoftware/GUIWidgets/#using-udp-to-send-markers

msg = struct.pack('!f', marker)

Console Log and Screenshots

Using Synthetic streaming for testing purposes.

Using the following message over UDP as in the example:

struct.pack('!d', float(3.0))

The GUI reports

Inserted marker 2.125

When using the following message over UDP:

struct.pack('!f', float(3.0))

The GUI reports correctly:

Inserted marker 3.0

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