For details of MicroPython bluetooth class, please refer to the link:
Or you can use the higher level aoible library (wrapper of MicroPython bluetooth class), here is the link: