A Secure WebSocket Relay can be used to connect to your device over the internet (from anywhere in the world).
Warning
🚧 THIS IS EXPERIMENTAL, BEWARE OF BUGS 🚧
1. Connect ViperIDE to your device using USB
import wss_repl
# Setup your WiFi network
wss_repl.connect_wifi('WiFi_SSID', 'WiFi_Password')
# Connect to the WebSocket server
wss_repl.start()On the first run, the device generates a random ID and stores it in .viper.json.
Later boots reuse the same ID automatically.
You can still provide a fixed ID explicitly:
wss_repl.start(uid='YOUR-DEVICE-UID')In the terminal, you should see something like:
IDE available on https://viper-ide.org?wss=YOUR-DEVICE-UID
Visit the specified link to open the IDE.
If you're running a relay server, please specify the URL:
wss_repl.start(url='wss://your-server-url')- Use WebREPL button in
ViperIDEto connect to your device - Your device address will look like this:
wss://your-server-url/YOUR-DEVICE-UID