Abstract
Just like Lab 3, also Lab 4 establishes communication between Raspberry Pi and the server, this time however with HTTP protocol. The setup is illustrated in Fig. 7.1. In Lab 4, we learn how to install and deploy Elasticsearch tools and how to master REST API using HTTP protocol. We also learn how to implement an HTTP client on Raspberry Pi in Python using requests library tools.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Libraries
Requests library: https://requests.readthedocs.io/en/latest/user/install/
Tools
Docker Engine installation on Ubuntu: https://docs.docker.com/engine/install/ubuntu/
OpenSSH Server: https://ubuntu.com/server/docs/service-openssh
K3s container orchestrator: https://rancher.com/docs/k3s/latest/en/installation/install-options/
Elasticsearch helm chart: https://github.com/elastic/helm-charts/tree/7.17/elasticsearch
Elasticsearch: https://www.elastic.co/elasticsearch/
Other Resources
RESTful API tutorial: https://restfulapi.net/http-methods/
Elasticsearch tutorial: https://www.elastic.co/guide/en/elasticsearch/reference/current/getting-started.html
HTTP client in Python: https://github.com/tubskns/notelab-code/blob/master/rpi/http_client.py
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
Copyright information
© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this chapter
Cite this chapter
Jukan, A., Masip-Bruin, X., Dizdarević, J., Carpio, F. (2023). Lab 4—Connecting Edge and Cloud Tools with REST HTTP. In: Network of Things Engineering (NoTE) Lab. Springer, Cham. https://doi.org/10.1007/978-3-031-20635-1_7
Download citation
DOI: https://doi.org/10.1007/978-3-031-20635-1_7
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-20634-4
Online ISBN: 978-3-031-20635-1
eBook Packages: EngineeringEngineering (R0)