Skip to content

Instantly share code, notes, and snippets.

@Amitjipathak
Amitjipathak / SendIoThub.py
Last active June 15, 2023 13:33
uploading cc2650stk sensor data to azure iot hub/stream analytics/powerBi using raspberrypi
from base64 import b64encode, b64decode
from hashlib import sha256
from urllib import quote_plus, urlencode
from hmac import HMAC
import requests
import time
import json
import struct
import Sensortag2650 as sensortag