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?