Are there any TCP/IP stack implementations on top

2019-02-27 18:24发布

What I need to do is pair with a Bluetooth enabled device which hosts some webservices and browse for DNS-SD services.

Then I have to pick one of those discovered services and make some http requests over https or other secure method.

I already did this trough WiFi, but for some reasons there's a need to do the same trough Bluetooth.

I did some research yesterday but I haven't found what I need. I'm not sure how to approach this.

Any input on this is welcomed. Thanks!

1条回答
仙女界的扛把子
2楼-- · 2019-02-27 19:08

Most implementations of bluetooth implement sockets on top of RFCOMM or L2CAP, but these are not standard sockets.

I've never used it, but I believe that the Bluetooth network encapsulation protocol (BNEP) allows for the use of standard TCP/IP networking over Bluetooth. Android does not implement this and I don't think it is widely supported elsewhere.

查看更多
登录 后发表回答