Skip to content

issues using client.triggerEvent() #7

Description

@aamaliaa

I'm having some real issues triggering my own events from the Arduino. When I send the sample input:

client.triggerEvent("my-event", "some data about my event");

I get "Client Error" in the debug console type column with a "Received invalid JSON" msg.

Then, when I try to pass in JSON for my data like so...

  client.triggerEvent("my-event", "{ \"result\": \"1\" }");

I get this msg: "Unsupported event received on socket: my-event".

Any idea what I might be doing wrong?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions