I just started looking into Mindsphere and I have a developer account.
I usually code apps i php and have mostly done websites with SQL connetion.
Now I am trying to understand the function of Mindsphere apps.
I have installed CloudFoundry and set this up, so thats OK.
What I can not find (or understand) is how do I access my data points?
If I want to read the latest value (say Integer) from
$latest_data_value = ????;
Solved! Go to Solution.
Hi @alo-dafo ,
MindSphere offers multiple REST-Endpoints that provide the IoT-related data. In case you have already created an asset and ingested data, then you can read the following pages for further information:
And here is a short summary of the necessary steps:
Thank you for the reply @MichaelE .
I am still confused.
I want to use a self-hosted PHP app.
I have understood that I need to create a secret key and access this via REST endpoint, and use OAuth ?
(All this is new to me but I would like to learn). How do I create this key?
Do I need to create a "virtual" app in developer cockpit for my self-hosted app?
How do I grant permissions to my datapoints so I can access these from my self-hosted app?
Is there someone that can give me a code sample of the PHP code required?
How do I address the data points? Example asset: tenant.variabletest, variable: myData
I find the documentation very confusing and lack examples.
I am also confused in how to generate my secret key / token? How to use the Token manager? The documentation for this is also very confusing. Where do I find the token manager?
I'm on a developer plan.
Thanks in advance,