Practical Python Programming for IoT (Paperback)
暫譯: 物聯網實用Python程式設計 (平裝本)

Smart, Gary

買這商品的人也買了...

商品描述

Key Features

  • Learn the fundamentals of electronics and how to integrate them with a Raspberry Pi
  • Understand how to build RESTful APIs, WebSocket APIs, and MQTT-based applications
  • Explore alternative approaches to structuring IoT applications with Python

Book Description

The age of connected devices is here, be it fitness bands or smart homes. It's now more important than ever to understand how hardware components interact with the internet to collect and analyze user data. The Internet of Things (IoT), combined with the popular open source language Python, can be used to build powerful and intelligent IoT systems with intuitive interfaces.

This book consists of three parts, with the first focusing on the "Internet" component of IoT. You'll get to grips with end-to-end IoT app development to control an LED over the internet, before learning how to build RESTful APIs, WebSocket APIs, and MQTT services in Python. The second part delves into the fundamentals behind electronics and GPIO interfacing. As you progress to the last part, you'll focus on the "Things" aspect of IoT, where you will learn how to connect and control a range of electronic sensors and actuators using Python. You'll also explore a variety of topics, such as motor control, ultrasonic sensors, and temperature measurement. Finally, you'll get up to speed with advanced IoT programming techniques in Python, integrate with IoT visualization and automation platforms, and build a comprehensive IoT project.

By the end of this book, you'll be well-versed with IoT development and have the knowledge you need to build sophisticated IoT systems using Python.

What you will learn

  • Understand electronic interfacing with Raspberry Pi from scratch
  • Gain knowledge of building sensor and actuator electronic circuits
  • Structure your code in Python using Async IO, pub/sub models, and more
  • Automate real-world IoT projects using sensor and actuator integration
  • Integrate electronics with ThingSpeak and IFTTT to enable automation
  • Build and use RESTful APIs, WebSockets, and MQTT with sensors and actuators
  • Set up a Raspberry Pi and Python development environment for IoT projects

Who this book is for

This IoT Python book is for application developers, IoT professionals, or anyone interested in building IoT applications using the Python programming language. It will also be particularly helpful for mid to senior-level software engineers who are experienced in desktop, web, and mobile development, but have little to no experience of electronics, physical computing, and IoT.

商品描述(中文翻譯)

**主要特點**

- 學習電子學的基本原理以及如何將其與 Raspberry Pi 整合
- 了解如何構建 RESTful API、WebSocket API 和基於 MQTT 的應用程式
- 探索使用 Python 結構化 IoT 應用程式的替代方法

**書籍描述**

連接設備的時代已經來臨,無論是健身手環還是智慧家庭。了解硬體元件如何與互聯網互動以收集和分析用戶數據比以往任何時候都更為重要。物聯網(Internet of Things, IoT)結合流行的開源語言 Python,可以用來構建強大且智能的 IoT 系統,並提供直觀的介面。

本書分為三個部分,第一部分專注於 IoT 的「互聯網」組件。您將掌握端到端的 IoT 應用程式開發,以便通過互聯網控制 LED,然後學習如何在 Python 中構建 RESTful API、WebSocket API 和 MQTT 服務。第二部分深入探討電子學和 GPIO 介面的基本原理。隨著您進入最後一部分,您將專注於 IoT 的「事物」方面,學習如何使用 Python 連接和控制各種電子傳感器和執行器。您還將探索多種主題,例如馬達控制、超聲波傳感器和溫度測量。最後,您將掌握 Python 中的高級 IoT 編程技術,與 IoT 可視化和自動化平台整合,並構建一個全面的 IoT 專案。

在本書結束時,您將熟悉 IoT 開發,並擁有使用 Python 構建複雜 IoT 系統所需的知識。

**您將學到的內容**

- 從零開始了解 Raspberry Pi 的電子介面
- 獲得構建傳感器和執行器電子電路的知識
- 使用 Async IO、pub/sub 模型等在 Python 中結構化您的代碼
- 使用傳感器和執行器整合自動化現實世界的 IoT 專案
- 將電子學與 ThingSpeak 和 IFTTT 整合以啟用自動化
- 構建和使用 RESTful API、WebSockets 和 MQTT 與傳感器和執行器
- 為 IoT 專案設置 Raspberry Pi 和 Python 開發環境

**本書適合誰**

這本 IoT Python 書籍適合應用程式開發人員、IoT 專業人士或任何有興趣使用 Python 編程語言構建 IoT 應用程式的人。對於在桌面、網頁和移動開發方面有經驗的中高級軟體工程師,但在電子學、物理計算和 IoT 方面經驗較少或沒有經驗的人,這本書也將特別有幫助。

目錄大綱

  1. Setting Up your Development Environment
  2. Getting Started with Python and IoT
  3. Networking with RESTful APIs and Web Sockets using Flask
  4. Networking with MQTT, Python, and the Mosquitto MQTT Broker
  5. Connecting Your Raspberry Pi to the Physical World
  6. Electronics 101 for the Software Engineer
  7. Turning Things On and Off
  8. Lights, Indicators, and Displaying Information
  9. Measuring Temperature, Humidity, and Light Levels
  10. Movement with Servos, Motors, and Steppers
  11. Measuring Distance and Detecting Movement
  12. Advanced IoT Programming Concepts – Threads, AsyncIO, and Event Loops
  13. IoT Visualisation and Automation Platforms
  14. Tying It All Together - An IoT Christmas Tree

目錄大綱(中文翻譯)


  1. Setting Up your Development Environment

  2. Getting Started with Python and IoT

  3. Networking with RESTful APIs and Web Sockets using Flask

  4. Networking with MQTT, Python, and the Mosquitto MQTT Broker

  5. Connecting Your Raspberry Pi to the Physical World

  6. Electronics 101 for the Software Engineer

  7. Turning Things On and Off

  8. Lights, Indicators, and Displaying Information

  9. Measuring Temperature, Humidity, and Light Levels

  10. Movement with Servos, Motors, and Steppers

  11. Measuring Distance and Detecting Movement

  12. Advanced IoT Programming Concepts – Threads, AsyncIO, and Event Loops

  13. IoT Visualisation and Automation Platforms

  14. Tying It All Together - An IoT Christmas Tree