function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Vladimir BessonovVladimir Bessonov 

what API should be used for Salesforce IoT?

Hi. 
I found a pretty good article about IoT on Salesforce 

https://blog.enree.co/2018/05/salesforce-iot-lets-play-the-game-with-salesforce-iot-part-2-setup-an-orchestration.html

in this example, REST API is used.

But in real life, it will not be the case I assume.
For IoT devices, it shall be some streaming API used to constantly update the device temp, level, or other params. 

In the documentation of salesforce, they compare streaming API with Platform Event. 
But in this case, IoT application, I need to use some API to create the platform event first, then I process this platform event with Orchestration. 

What Salesforce API I should use for constantly updating IoT Data and how? Create a connected App? this app should push the data into salesforce? 

For example, I would like to update temp reading every sec and update my related Salesforce object info every sec. 

With the use of orchestration, l will generate new cases. 

Any limitations on that? 

I also wanted to have trends of IoT devices in Salesforce? is it possible at all? 

There is such a thing as historical reporting. But is limited to 1 snapshot for the day and it is used for a different purpose, for sure it is not for trends recording. 







 
alex sunnyalex sunny
Once, WSDL is downloaded and saved on local drive. We have to go to Salesforce and navigate to “Setup | Develop | Apex Classes”. On right hand side, you will find button named as “Generate from WSDL”. This button will generate equivalent Apex class to support Webservice call. In some Programming languages, these classes are known as Proxy classes or Stubs.


thanks
alexsunny
AbhishekAbhishek (Salesforce Developers) 
Did you check this,


https://developer.salesforce.com/docs/atlas.en-us.api_iot.meta/api_iot/intro_api_iot.htm

https://help.salesforce.com/articleView?id=iotx_home.htm&type=5

https://developer.salesforce.com/docs/atlas.en-us.api_iot.meta/api_iot/intro_architecture.htm


It might help you.