0

Is there a way to use pushbullet with a pico w using micropython? I am using the thonny IDE. This is my code as of right now. I keep getting a osError:-2 when it is ran.

    body = "Sensor Data"
    title = "Fall Detected"
    data_sent = {"type":"note","title":title,"body":body}
    API_KEY = 'o.Ywi05DOBMqM3jdGJ5FdGEwd6STLclHuj'
    pb_headers = {
    'Authorization': 'Bearer ' + API_KEY,
    'Content-Type': 'application/json',
    'Host': 'api.pushbullet.com'
    }
    r = requests.post('https://api.pushbullet.com/v2/pushes',data=json.dumps(data_sent),headers=pb_headers)
Killerbee
  • 1
  • 2

0 Answers0