Skip to content

Latest commit

 

History

History

Practical Python Programming for IoT

Chapter 12 - Advanced IoT Programming Concepts - Event-Loops, Threads, PubSub & AsyncIO

  • requirements.txt - Python dependencies required for this chapter

  • version1_eventloop - Folder with Event-Loop version of code

    • main.py - Main program
    • BUTTON.py - Button Class
    • LED.py - LED Class
    • POT.py - Pot (Potentiometer) Class
  • version2_threads - Folder with Thread & Callback version of code

    • main.py - Main program
    • BUTTON.py - Button Class
    • LED.py - LED Class
    • POT.py - Pot (Potentiometer) Class
  • version3_pubsub - Folder with Publisher-Subscriber version of code

    • main.py - Main program
    • BUTTON.py - Button Class
    • LED.py - LED Class
    • POT.py - Pot (Potentiometer) Class
  • version4_asyncio - Folder with Asynchronous IO (AsyncIO) version of code

    • main.py - Main program
    • BUTTON.py - Button Class
    • LED.py - LED Class
    • POT.py - Pot (Potentiometer) Class
  • version5_eventloop2 - Folder with an non-functioning Event-Loop version of code

    • main.py - Main program (Python 3.5)
    • main_py37.py - Main program (Python 3.7+ Only)
    • BUTTON.py - Button Class
    • LED.py - LED Class
    • POT.py - Pot (Potentiometer) Class

VERSION 5 IS NOT EXPECTED TO WORK. THE REASON IS DISCUSSED IN THE BOOK