I am new to smart apps and have been playing with the Google Sheets logger. There’s a number of buttons around the app code window. I looked at the SmartThings documentation on the Editor And Simulator but it only briefly touches on one or two of them. In my brief testing it looks like:
- Only Save actually needs to be hit to make the code I am viewing update into what is currently running.
And, of course, I assume it’s saved in the sense that the new changes will persist if my PC crashes. When you load the IDE, you will get whatever you last Saved. (If you crashed after some changes that you did not Save, they are lost.)
- Not sure what Published does. I guess it makes it public / exposes it for others, but at this point it is only “For Me”, so there’s no point for me to ever hit it until I’m actually sharing it with others, eh?
Are Save and Publish separate and either one can have more recent code, depending on which you last hit (sort of like a Dev versus Production server)?
- Install activates the simulator and debug log. Not sure if it causes a Save or Publish.
If you Install or Update after changing code, it will run your changes? (In other words: Install works from the interactive code window, not from the last Saved version, eh.)
- Not sure what’s the difference between Install and Update. I guess Install gets it running when first logging into IDE; Update causes any code changes since then to be simulated.
At this point, I am only working on my one app, and it’s only for me (with one hub).
You don’t need to answer all those questions per se, they sort of overlap. But you see what I’m wondering. I keep hitting any I think I might need to, when I probably don’t need to. If someone knows a place in the Documentation that specifically discusses this, that’d be great. I don’t see it in Editor And Simulator.