webCoRE icon indicating copy to clipboard operation
webCoRE copied to clipboard

Added endpoint & randomUUID system

Open bloodtick opened this issue 6 years ago • 5 comments

See discussion here: https://community.webcore.co/t/piston-external-url-value-available-to-self/13983

bloodtick avatar Sep 16 '19 16:09 bloodtick

Thanks! I noticed that parent.state is not used elsewhere and found documentation from SmartThings suggesting that it may not always be safe to access directly. Would you please add a public method to the webCoRE smart app to return state.endpoint, similar to how isInstalled() works?

idpaterson avatar Sep 16 '19 16:09 idpaterson

Will look at it. Shouldn't be a problem to do that later today.

bloodtick avatar Sep 16 '19 16:09 bloodtick

All yours. State and Atomic are strange birds in ST land.

bloodtick avatar Sep 16 '19 16:09 bloodtick

Is this finished? I wasn't able to trace where rtData.endpoint is meant to originate. I think you would need to provide that in getRunTimeData() for the webCoRE smart app.

idpaterson avatar Oct 21 '19 13:10 idpaterson

Yes, it is complete. It is a little tricky they way it is called and took some time to figure out, but it is filled here: private Map getVariable(rtData, name) when the piston calls for endpoint.

It doesn't load on the web interface and shows "null" from the .toString() method. This is expected behavior.

bloodtick avatar Oct 21 '19 13:10 bloodtick