I installed socket.io via the command npm install socket.io
but when I go to the ArduinoCreateAgent debug console, type log on, and try to use socket.emit('command', 'list');
I get an error saying that it could not understand the command.
I installed socket.io
Where did you execute that command?
but when I go to the ArduinoCreateAgent debug console
What the heck is that?
I executed the command in terminal and really? You don't know what the debug console is?
You don't know what the debug console is?
I know what the Serial Monitor application is, and what it is used for. It is NOT called "the ArduinoCreateAgent debug console" by anyone else.
If you are talking about the Serial Monitor application, why are you calling is something else. If you are not talking about the Serial Monitor application, don't make fun of people that ask you to clarify what you are talking about.
I don't know why the picture didn't show.
Here's the link to the picture so you can see what I'm talking about
ArduinoCreateAgent is the plugin for the Arduino Create Editor:
The debug console is different from the Serial Monitor. You can load it from the Arduino Create Agent icon in the tray.
I believe jordanbaron is trying to follow these instructions:
I get the same error from:
socket.emit('command', 'list');
but if I just send:
list
it works fine. I also successfully used open, close, and send. So I think that's an error in the documentation that's throwing you off. Just use list instead.
I submitted a pull request to fix the issue with the documentation: