iOS/Android - TCP/IP over Bluetooth

自作多情 提交于 2019-12-06 13:28:04

问题


I will briefly describe what I am trying to do and any help will be appreciated.

I have some devices (I will refer to them as 'Devices') (basically sensors) which are connected to some other devices (I will refer to them as 'ConnectDevices') using Ethernet (TCP/IP). These Devices basically send some data values they are monitoring. Th ConnectDevices have two interfaces: Ethernet + Bluetooth (2.1 + EDR) and they are connected to a router and they all form a LAN.

Hence, my question is: is it possible to monitor my Devices (read data) using an iPhone/Android phone? That means I should somehow connect to Devices available on LAN, but thru the Bluetooth interface of (the closest) ConnectDevice. Moreover, it should be possible to connect to any Device from any CoonectDevice even if they are not directly connected.

Thanks.


回答1:


Impossible to know without documentation / code for how they communicate and the interfaces they expose.

In any case, both TCP and Bluetooth require a specific HOST address to connect to. Without knowing this, the Android/iOS app wouldn't know what to connect to.



来源:https://stackoverflow.com/questions/9367055/ios-android-tcp-ip-over-bluetooth

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!