Request to a webService encapsulated in a bluetooth datagram?

0

You see, I have a server in a raspberry. This server generates a distributed network topology based on ad-hoc (Mesh Network). I have several web services implemented (see topology, traffic sniffer in the network ..). The thing is that now I wanted to develop an android application that uses such web services .. But Android does not allow to connect to ad-hoc networks .. So I can not access those web services. The server is LOCAL, so Obviously if I'm not inside that network I can not use them. How can I make requests to these web services? Can the HTTP request be encapsulated in a bluetooth datagram and then the bluetooth server of the raspberry process the request and answer the android device? Thanks and best regards!

    
asked by ADRIÁN SÁNCHEZ MEDINA 20.06.2017 в 13:11
source

1 answer

0

If both devices are on the same network and your raspberry is running a web server (apache, express, etc) then you should be able to consume them using the ip assigned to your raspberry by your router using a web page and your device's browser or with a mobile application that uses the ip assigned to your raspberry.

Now if you want to expose your web services to the world (you must take into account the risks involved) you can take link

    
answered by 20.06.2017 в 21:42