HTTP server on Sentinel
-
Hello,
I want to setup HTTP request & response server on Sentinel. Ideally, as Sentinel fly the route, I want sensors along the path to send data as HTTP post request.
Down the load, I want to process the data on board.Is there any documentation that can help me get started?
Thank you,
-
This post is deleted! -
@soraminds im not sure there is any but we did what I believe you are describing in reverse. We set up a shell script on the drone that sent web requests to a server running on our network. This requests contained the GPS information from
voxl-inspect-gps
.On our server, we set up a webserver using Perl and its HTTP::Server::Simple::CGI module. IIRC Perl was already on the drone so you might natively be able to do this in reverse, otherwise just install that package/module and look up some examples for it. That should get you there
Only catch might be the IP address changing. Depending on your network perhaps your webserver IP (running on drone) may not be static. You would have to account for that somehow. In our case, our server was static and this point was moot. Good luck!
-
@soraminds VOXL 2 is a Linux computer so you can just run Apache or any other standard web server. But be aware that
voxl-portal
is also a running web server so you would have to stop it or, even better, run your server on a different port.