Skip to content

Instantly share code, notes, and snippets.

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