Since I need to put out a product ASAP and the Photon is backed ordered to May, I’m moving forward with the CORE.
Ok lets say I already claimed the Cores, flashed the firmware, and cleared the WIFI credentials before shipping the product out to the customer, now what do I do with the access tokens. From my understanding the tokens are just used to access the SparkCloud to a particular Core ID. Right?
So here’s the scenario. The customer could use a phone App I wrote installed from the Google store or download a webpage I wrote to run on their server to access their Core product. However, the App or the webpage needs to know the Cores ID and access token to communicate to the product.
How should this be done? Presently, I hard coded the information in my prototype.
Since I don’t want to hard code the ID or token in the phone App or webpage, how should we code these things to obtain access? I read some place about using PHP, but it did not explain what to do with it.
Please explain, step by step so I can carry it out.
Also when it comes time to refresh the access tokens,how should it be implemented?
Thanks again for helping.
This is my first wireless product.