Hello
Pyboard series D
MicroPython v1.19.1 on 2022-06-18; PYBD-SF2W with STM32F722IEK
I want to use the module aioble for bluetooth functions.
upip/pip are not on my distribution, see below
What I actually want to do is get the names of bluetooth devices within range ( i think i have hex IDs )
>>> help('modules')
__main__ micropython ubluetooth ure
_onewire network ucollections uselect
_uasyncio onewire ucryptolib usocket
_webrepl pyb uctypes ussl
builtins stm uerrno ustruct
cmath uarray uhashlib usys
dht uasyncio/__init__ uheapq utime
framebuf uasyncio/core uio utimeq
gc uasyncio/event ujson uwebsocket
lcd160cr uasyncio/funcs umachine uzlib
lcd160cr_test uasyncio/lock uos webrepl
lwip uasyncio/stream uplatform webrepl_setup
math ubinascii urandom websocket_helper
Plus any modules on the filesystem[/size]
Assistance would be welcome, regards Andrew
I cannot find upip
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: I cannot find upip
I don't know why it isn't installed by default, but it can be found here. You need to copy upip.py and upip_utarfile.py to your filesystem.
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.
Re: I cannot find upip
Peter is right that you can install upip manualy, but note that upip will not be able to install aioble. In the meantime you can copy the aioble directory to your board (from https://github.com/micropython/micropyt ... oth/aioble).
Code: Select all
mpremote connect /dev/ttyACM0 mkdir :aioble
mpremote connect /dev/ttyACM0 fs cp /path/to/micropython-lib/micropython/bluetooth/aioble/aioble/*.py :aioble/
Re: I cannot find upip
Good evening
Pyboard series D
MicroPython v1.19.1 on 2022-06-18; PYBD-SF2W with STM32F722IEK
I'm clearly not understanding a lot...
The file system: is this the PYBFLASH directory shown in file explorer? ( boot,main,README etc )
To install pip do I copy the upip and upip_utafile files to it?
Having done so:
>>> import upip as pip
>>>
...shows no errors
My apologies for such low level questions but my searches were fruitless.
Pyboard series D
MicroPython v1.19.1 on 2022-06-18; PYBD-SF2W with STM32F722IEK
I'm clearly not understanding a lot...
The file system: is this the PYBFLASH directory shown in file explorer? ( boot,main,README etc )
To install pip do I copy the upip and upip_utafile files to it?
Having done so:
>>> import upip as pip
>>>
...shows no errors
My apologies for such low level questions but my searches were fruitless.