Skip to content

Instantly share code, notes, and snippets.

from mqtt import MQTT
import requests
import time
import json
import re
import uuid
import os
rest = 5
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()
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()