ps auxw | grep obex-da
root 3119 0.0 0.1 4276 1880 pts/1 S+ 13:07 0:00 grep obex-da
root@raspberrypi:/home/pi# sudo obexpushd -B -n
obexpushd 0.11.2 Copyright (C) 2006-2010 Hendrik Sattler
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions.
Listening on bluetooth/[00:00:00:00:00:00]:9
Creating file "abc0.png"
Creating file "abc0.png"
Error: cannot create file: File exists
如果该文件已存在,则Obexpushd将返回错误。基本上它无法覆盖现有文件。有解决方案吗
尝试在发送文件之前先删除文件,方法是发送没有正文的PUT请求或End-Of-Body标题,然后发送文件。