This public repository is read-only and no longer maintained. For the latest sample code repositories, visit the SAP Samples organization.
With SAP Internet of Things you can receive measurement data from any device, match it to a business process context in SAP IoT and trigger and automate business processes in SAP ERP with Smart Sensing, rules and actions.
Integrate and extend the computing capabilities with the IoT Edge, the Intelligent Edge Computing software that provides "microservices at the edge" for Internet of Things (IoT).
Use this sample collection to learn and speed up the use of the different SAP IoT APIs and services.
The context of most of the included examples is to build a solution, that allows deliveries coming from the sales order processing in ERP to be tracked with sensors. This allows to find out, if a product that should have been cooled (or not exposed to too much light or any other condition), was actually cooled all the way from shipment to receiving. This is called in the IoT-World a "cold chain tracking" scenario.
-
An SAP Business Technology Platform global account with entitlements for SAP IoT, see the Discovery Center for different pricing solutions.
-
Other prerequisites are listed in each sample.
Clone or download the repo to your computer and then follow more detailed installation instructions below per folder in the repo:
Feature | Description | Link |
---|---|---|
SAP IoT APIs | These scripts allow you to create device and thing/application model based on a definition language for digital twins in json files. You can use these scripts for a first prototype where you want to have the device model and the thing/application model mostly in sync and where you have only one set of measurements and one set of master data. To use these scripts please refer to the tutorials at https://developers.sap.com/tutorials/iot-model-create.html and https://developers.sap.com/tutorials/iot-onboard-device.html to learn how to apply them to your tenant/system. | SAP IoT APIs |
SAP IoT Edge | Extension Service samples for the IoT Edge. | IoT Edge Extensions |
Smart Sensing | This folder contains Sample codes and utilities for the SAP Internet of Things Smart Sensing. | Smart Sensing Folder |
Location Services | The postman collection and environment in here allow you to make calls to the location services APIs of SAP IoT. Instructions for how to use them are provided in the tutorials at http://developers.sap.com/tutorials/iot-locations-geofence.html. | Location Services Samples |
Analytics | The postman collection and environment in here allow you to create a small sample application model from scratch, put some measurement data into it. Then it provides the apis in SAP IoT that allow you to hook up to and share the aggregated data with SAP Analytics Cloud. Instructions how to use the collection are provided in the tutorial at http://developers.sap.com/tutorials/iot-sac-integration-ext.html. | SAP Analytics Cloud Integration |
Streaming Access | Samples to deploy a Cloud Foundry java application to start consuming the streaming data from SAP IoT topics (both raw sensor data and processed data with business semantics). Please note that the feature can only be used with Early Adopter Access. The provided samples implement a simple pure Java consumer and a Spring Boot application to consume from the streaming access Kafka and forward the data to a specific hdi-container of your SAP HANA Cloud instance. | Streaming Access Folder |
Various and tools | A folder collecting various tools. | Tools |
To find all developer oriented material please refer to Internet of Things community topic.
For any further information please refer to the product documentation of SAP IoT
The included samples do not cover all SAP IoT APIs and functionalities.
These samples are provided "as-is" basis with detailed documentation on how to use them.
Please use our community for questions and answers on the sample code.
If you have found a material issue with the example please create an issue in this GitHub repo.
Please feel free to put in a pull request and give us some time to review and respond.
Copyright (c) 2020 SAP SE or an SAP affiliate company. All rights reserved. This project is licensed under the Apache Software License, version 2.0 except as noted otherwise in the LICENSE in this repository.