Atualmente, quero alterar o Nome do dispositivo Pico 2W exibido no aplicativo nRF Connect . Estou usando o Micro Pico no VsCode. Tentei muitas coisas, mas o Nome é sempre " N/A ".
import bluetooth
from time import sleep
bluetooth.BLE().active(True)
ble = bluetooth.BLE()
device_name = 'PicoW_Device'
advertising_data = b'\x02\x01\x06\x03\x03\x0F\x18\x09' + bytes(device_name, 'utf-8')
ble.gap_advertise(100, adv_data=advertising_data)
print(f"The Name of the device is currently: {device_name}")
while True:
sleep(1)
Tentei alterar o nome, mas sempre aparecia " N/A "