Description |
1 online resource (500 pages) |
Contents |
Cover -- Title Page -- Copyright and Credits -- About Packt -- Contributors -- Table of Contents -- Preface -- Section 1: Programming with Python and the Raspberry Pi -- Chapter 1: Setting Up your Development Environment -- Technical requirements -- Understanding your Python installation -- Setting up a Python virtual environment -- Installing Python GPIO packages with pip -- Anatomy of a virtual environment -- Alternative methods of executing a Python script -- Using sudo within virtual environments -- Executing Python scripts outside of their virtual environments |
|
Running a Python script at boot -- Configuring the GPIO interface on our Raspberry Pi -- Configuring the PiGPIO daemon -- Summary -- Further reading -- Chapter 2: Getting Started with Python and IoT -- Technical requirements -- Creating a breadboard prototype circuit -- Understanding the breadboard -- Positioning and connecting the push button -- Positioning and connecting the LED -- Positioning and connecting the resistor -- Reading an electronic schematic diagram -- Reading the push button schematic connection -- Reading the LED and resistor schematic connection |
|
Introducing ground connections and symbols -- Exploring two ways to flash an LED in Python -- Blinking with GPIOZero -- Imports -- Pin Factory configuration -- Blinking the LED -- Blinking with PiGPIO -- Imports -- PiGPIO and pin configuration -- Blinking the LED -- Comparing the GPIOZero and PiGPIO examples -- Exploring two ways to integrate a push button in Python -- Responding to a button press with GPIOZero -- Imports -- Button pressed handler -- Button configuration -- Preventing the main thread from terminating -- Responding to a button press with PiGPIO -- Button pin configuration |
|
Button pressed handler -- Creating your first IoT program -- Running and testing the Python server -- Understanding the server code -- Imports -- Variable definitions -- The resolve_thing_name() method -- The get_lastest_dweet() method -- The poll_dweets_forever() method -- The process_dweet() method -- The main program entry point -- Extending your IoT program -- Implementing a dweeting button -- PiGPIO LED as a class -- Summary -- Questions -- Further reading -- Chapter 3: Networking with RESTful APIs and Web Sockets Using Flask -- Technical requirements |
|
Introducing the Flask microservices framework -- Creating a RESTful API service with Flask-RESTful -- Running and testing the Python server -- Understanding the server code -- Imports -- Flask and Flask-RESTful API instance variables -- Global variables -- The init_led() method -- Serving a web page -- The LEDControl class -- The get() class method -- The post() class method -- LEDController registration and starting the server -- Introduction to PWM -- Adding a RESTful API client web page -- Understanding the client-side code -- JavaScript imports -- The getState() function |
Local Note |
eBooks on EBSCOhost EBSCO eBook Subscription Academic Collection - North America |
Subject |
Internet of things.
|
|
Python (Computer program language)
|
|
COMPUTERS -- Networking -- Intranets & Extranets. |
|
COMPUTERS -- Microprocessors. |
|
COMPUTERS -- Programming Languages -- Python. |
|
Internet of things |
|
Python (Computer program language) |
Other Form: |
Print version: Smart, Gary. Practical Python Programming for IoT : Build Advanced IoT Projects Using a Raspberry Pi 4, MQTT, RESTful APIs, WebSockets, and Python 3. Birmingham : Packt Publishing, Limited, ©2020 |
ISBN |
1838982833 |
|
9781838982836 (electronic bk.) |
|