arduino-create-agent icon indicating copy to clipboard operation
arduino-create-agent copied to clipboard

Socketio Messages

Open matteosuppo opened this issue 9 years ago • 2 comments

We are using http://socket.io/ but only for its reconnections.

We could leverage the concept of events in order to have a clearer API.

For example:

Event from the client Arguments
CmdDiscover
CmdOpen {port: "", baud: ""}
CmdClose {port: ""}
CmdSend {port: "", data: ""}
CmdDownload {tool: "", version: ""}
CmdTools
CmdInterrupt
Event from the agent Arguments
DiscoverSerial []array of boards
DiscoverNetwork []array of boards
ProgramOutput {msg: "", type: "debug"}
ProgramSuccess {msg: ""}
ProgramError {msg: "", err: ""}
DownloadOutput {msg: "", type: "debug"}
DownloadSuccess {msg: ""}
DownloadError {msg: "", err: ""}

matteosuppo avatar Sep 03 '15 15:09 matteosuppo

:heart:

facchinm avatar Sep 03 '15 15:09 facchinm

:tangerine: with love!

mastrolinux avatar Sep 03 '15 15:09 mastrolinux