2.2.1.4 Packet Tracer - Simulating IoT Devices

2.2.1.4 Packet Tracer - Simulating IoT Devices

1,296 View

Publish Date:
16 November, 2022
Category:
IOT Videos
Video License
Standard License
Imported From:
Youtube

You can download the pdf file from here: https://drive.google.com/file/d/1F0lV0k3sv1DR0qJWB6sxzJlYM_nuOeG5/view?usp=sharing

The Python code (Be careful with the indentations!):
from gpio import *
from time import *

def main():
pinMode(1, OUT)
print("I use IoT")
while True:
digitalWrite(1, HIGH);
customWrite(0, -127);
delay(1000)
digitalWrite(1, LOW);
customWrite(0, 127);
delay(500)

if __name__ == "__main__":
main()


Did you miss our previous article...
https://techvideos.club/iot-videos/iot-enabled-intelligent-water-measuring-system-for-commercialgrade-smart-water-meter