Jumperless/Jumperless Wokwi Bridge App/JumperlessWokwiBridge/JumperlessWokwiBridgeAPI.py
Kevin Santo Cappuccio 3c9b6b5273 New Wokwi Bridge App
2023-07-05 13:38:29 -07:00

40 lines
594 B
Python

from bs4 import BeautifulSoup
import asyncio
import websocket
import requests
import json
import serial
import time
import serial.tools.list_ports
ws = websocket.WebSocket()
ws.connect("wss://wokwi.com/api/ws/beta")
portSelected = 0
print("\n\r")
#the website URL
#url_link = "https://hexi.wokwi.com/build"
wss_link = "wss://wokwi.com/api/ws/beta"
ws.send("Authorization: Bearer wok_f2apXMezNPdtahxhoPFrpLLvqUIt6FmA54113212")
r = ws.recv()
#requests.put(url_link, "Authorization: Bearer wok_f2apXMezNPdtahxhoPFrpLLvqUIt6FmA54113212")
#r = requests.get(url_link)
print(r)