This file contains hidden or 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 json | |
import ssl | |
from time import time | |
from time import sleep | |
from base64 import b64encode, b64decode | |
from hashlib import sha256 | |
from urllib import parse | |
from hmac import HMAC | |
from paho.mqtt import client as mqtt | |
from constants import iot_data |