I've previously done OBEX-related things, mostly fetching things from
mobile phones, using the obexftp program 2 which is part of the
OpenOBEX project 3. Naturally, you can call the obexftp program from
Python and interpret the responses and exit codes using functions in
the os, popen2 and subprocess modules. I believe that obexftp also
supports "push" mode, but you could probably find something else
related to OpenOBEX if it does not.
Since Bluetooth communications are supported using sockets in GNU/
Linux distributions and in Python (provided that the Bluetooth support
is detected and configured), you could communicate with phones using
plain network programming, but this would probably require you to
implement the OBEX protocols yourself - not a straightforward task for
a number of reasons, including one I mention below. Thus, it's
probably easier to go with obexftp at least initially.
最后
以上就是耍酷抽屉最近收集整理的关于python通过wifi控制手机_使用python在计算机和手机之间通过wifi进行简单的文件传输...的全部内容,更多相关python通过wifi控制手机_使用python在计算机和手机之间通过wifi进行简单内容请搜索靠谱客的其他文章。
发表评论 取消回复