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

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Receiving the messages sent to the device

Receive the messages with Python client

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.

  • retrieve.py: Using a GET request to poll for messages pushed towards the device

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