This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from mqtt import MQTT | |
import requests | |
import time | |
import json | |
import re | |
import uuid | |
import os | |
rest = 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import paho.mqtt.client as mqttClient | |
import requests | |
import serial | |
import json | |
import os | |
arduino = serial.Serial() | |
arduino.port = '/dev/ttyACM0' | |
arduino.baudrate = 9600 | |
arduino.open() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import paho.mqtt.client as mqttClient | |
import requests | |
import serial | |
import json | |
import os | |
arduino = serial.Serial() | |
arduino.port = '/dev/ttyACM0' | |
arduino.baudrate = 9600 | |
arduino.open() |