Skip to content

Conversation

@lorenwest
Copy link
Contributor

  • Added "events" attribute to the MCP, Robot, and Device
  • Added event discovery endpoints to match command discovery endpoints
  • Added event GET endpoints at the MCP and Robot level to match the GET endpoint at the Device
  • Provided consistent API ordering at all 3 levels:
    • Command discovery
    • Event discovery
    • Command POST
    • Event GET

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At first I named this event "pinged" to reduce command/event name confusion, but changed it to "ping" because that's the name of the event in implementations.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It appears in cylon.js the command execution pattern is to issue events for results vs. calling callbacks, which is probably why ping is both a command and an event. MCP implementations could choose to auto-expose these command events in the events array, or require them to be explicitly defined.

@lorenwest lorenwest mentioned this pull request Dec 11, 2014
@deadprogram
Copy link
Member

@stewart @zankich & @edgarsilva any comments?

@deadprogram
Copy link
Member

Sorry, I meant to merge this already. Thanks for the contribution!

deadprogram added a commit that referenced this pull request Jan 3, 2015
Added events to the MCP and Robot
@deadprogram deadprogram merged commit dc6bf27 into hybridgroup:master Jan 3, 2015
@lorenwest
Copy link
Contributor Author

Would you like help implementing? I'm working with cylon and wouldn't mind adding this support.

@deadprogram
Copy link
Member

I think @stewart has already been doing some work on it, and will probably commit something next week. Once he has his commits in place, you can perhaps provide some feedback or additional implementation, how does that sound?

@lorenwest
Copy link
Contributor Author

Excellent.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants