$ python upload_file.py README.md
uuids=['00001800-0000-1000-8000-00805f9b34fb', '00001801-0000-1000-8000-00805f9b34fb', '6e400001-b5a3-f393-e0a9-e50e24dcca9e', 'e5700001-7bac-429a-b4ce-57ff900f479d']
Connected to the Monocle
MicroPython v1.20.0-261-g813d559bc on 2023-07-06; Monocle on nRF52832
Type "help()" for more information.
>>>
>>>
>>> switching the terminal to raw mode
>>> opening a file to write to
>>> writing the data to the file
>>> closing the file so that the write() really take effect
>>> switch back to friendly mode
>>> upload done!
Device was disconnected.
$
Here is the behavior: