Skip to content
This repository has been archived by the owner on May 15, 2021. It is now read-only.

Latest commit

 

History

History
13 lines (9 loc) · 1.02 KB

File metadata and controls

13 lines (9 loc) · 1.02 KB

Sending messages from the device

Send messages with Python client using HTTP API

The IoT Starter Kit provides code snippets that show the basic interactions of an IoT device with the SAP Cloud Platform Internet of Things. These primitives are either sending or retrieving data which are shown in 2 individual snippets for usage with an HTTP transport and a combined one for usage via a bi-directional WebSocket transport. All examples use encrypted communication (https, wss) which is a prerequisite for the interaction with SAP Cloud Platform. The snippets are provided in Python which is also the basis for the Raspberry Pi and Device Simulation integrated examples. Nevertheless, the respective service calls can of course also be implemented in other programming languages.

  • insert.py: Using a POST request to send data from the device upstream

This code snippet have already been integrated in examples that can directly be used.