I noticed that if I update code and then do a BUILD AND RUN while I’m previewing a Model and a Device, it seems that only that device gets updated and not the rest of the devices.
I thought that when a Build and Run is performed, all devices get updated immediately (the ones that are connect at least)???
‘Build and Run’ applies to the selected device only. If you select a model (rather than a device) this button changes to ‘Build’, which affects all the devices assigned to that model, but doesn’t restart them - they get the new code when they next reboot.
If you’re willing to explore beyond the IDE, the Build API provides a way to achieve what you want, using the restart endpoint.
TLSv1.2 (OUT), TLS Unknown, Certificate Status (22):
TLSv1.2 (OUT), TLS handshake, Client hello (1):
TLSv1.2 (IN), TLS handshake, Server hello (2):
TLSv1.2 (IN), TLS handshake, Certificate (11):
TLSv1.2 (OUT), TLS alert, Server hello (2):
SSL certificate problem: unable to get local issuer certificate
Closing connection 0
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: http://curl.haxx.se/docs/sslcerts.html
curl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn’t adequate, you can specify an alternate file
using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
If you’d like to turn off curl’s verification of the certificate, use
the -k (or --insecure) option.
What is the ModuleID? Is this the name of my model in the IDE (in my case its called Troubleshooting?
Why am I getting all this SSL certificate errors? I even tried with the -k option as it specifies above
Well, the URL’s wrong for a start. You need to add your model’s ID (obtained by first GET-ing a list of models) in place of ‘Troubleshooting’. The model ID is in each model’s entry in that list.
Okay I ran the code to get the Models ID as per below, I have replaced my API_KEY below with XXXXXXXXX since this is a public forum. I am indeed using the right API Key that I created within the IDE.
I keep getting error as per below…
I am running curl on windows 7 64bit system and even tried at home on a windows 10 32bit system.
Ok, now you’re getting a good TLS handshake but your API key does not appear correct (hence you’re getting an unauthorized response).
The reason why this is happening is that the echo -n ... stuff is something that is executed on a linux or mac box, but on windows will do nothing (unixes execute everything in backticks and insert the output into the command line).
ie, you need to base64 encode your api key on windows. I don’t know how to do that. There are online services that will do this (just google base64 encode) but obviously you’re pasting your key in there which isn’t ideal for security.
The OUTPUT of that should be put into the auth basic string, ie: