Skip to content

Instantly share code, notes, and snippets.

View bortox's full-sized avatar

Andrea Bortolotti bortox

View GitHub Profile
#!/usr/bin/env bash
# Funzione per fermarsi e chiedere conferma
chiedi_conferma() {
echo ""
read -p "Premi INVIO per $1 (o CTRL+C per annullare)..."
}
clear
echo "===================================================="
#!/usr/bin/env bash
# Evitiamo che lo script si fermi per errori minori
set -m
echo "=========================================="
echo " NIXOS EMERGENCY REMOTE ACCESS "
echo "=========================================="
# 1. Pulizia totale
import bluetooth #https://docs.micropython.org/en/latest/library/bluetooth.html
import ubinascii
def main():
# We can play with the power setting to set for single beacons how far will the rssi threshold in the scanner be reached
#bluetooth.set_transmit_power(7.)
BLE = bluetooth.BLE()
BLE.active(True)
#Advertise