Ok! Itās working Still had some warnings, but everything compiled fine.
One thing I wish the CLI didnāt do, was every time I log in itās changing my access_token. So that basically just broke all of my static web apps. I suppose I should login with my web apps, but itās such a pain to type that all in on my phone every time I just want to toggle something. @Dave can we make the CLI not create a new access_token each time we login?
Also hereās some Serial failuresā¦
[HERE I RESET THE CORE AND PUT INTO LISTENING MODE]
c:\Spark\CLI>spark serial list
Found 1 core(s) connected via serial:
1: COM7
c:\Spark\CLI>spark serial monitor COM7
Opening serial monitor for com port: "COM7"
events.js:72
throw er; // Unhandled 'error' event
^
Error: Opening \\.\COM7: Access denied
[HERE I RESET THE CORE AND PUT BACK INTO LISTENING MODE]
c:\Spark\CLI>spark serial monitor COM7
Opening serial monitor for com port: "COM7"
events.js:72
throw er; // Unhandled 'error' event
^
Error: Opening \\.\COM7: Access denied
c:\Spark\CLI>spark serial list
Found 1 core(s) connected via serial:
1: COM7
c:\Spark\CLI>spark serial identify
events.js:72
throw er; // Unhandled 'error' event
^
Error: Opening \\.\COM7: Access denied
c:\Spark\CLI>spark serial wifi
SSID: xxxxxxxxxxxx
Pass: xxxxxxxxxxxx
Security 0=unsecured, 1=WEP, 2=WPA, 3=WPA2: 3
Attempting to configure wifi on COM7
events.js:72
throw er; // Unhandled 'error' event
^
Error: Opening \\.\COM7: Access denied
c:\Spark\CLI>
So, I could remove the hard dependency on OpenSSL and make it more of a soft dependency. This might confuse people seeking out the tool to do key fixes, but it would certainly make things easier if you donāt need openssl.
I like the idea of it being a soft dependency, only because Iāve never needed to do anything with keys yet, and I would imagine a very small percentage of users will. That way most people get the really great super easy ānpm install -g spark-cliā to run like magic and get you to doing cool stuff with your Core quicker. Python can still be a hurdle, but at least itās not that bad.
Thatās what I mean, the āursaā module is the āhard dependencyā on building OpenSSL, so itād be one less thing to install initially. We are also starting to talk about distributing node-serialport binaries to make the install easier.
I must be missing something. I was able to execute āspark cloud loginā and āspark cloud listā successfully. Butā¦when I try āspark serial listā with the Spark plugged into my USB port, it says it found 0 cores connected via serial.
Am I supposed to do something else to connect to USB?
When I typically plug a USB device into the computer, it asks me for a driver. This isnāt the case for the Spark. I see nothing with an issue in the device manager, either. How would I get the Windows computer to āwantā to recognize it?