3 ms·
In 2012, I need to sync data between a set-top box device(a karaoke machine) and an ios/android device to transfer SQLite data between them. The ios/android ap
by kureikain 3y ago
In 2012, I need to sync data between a set-top box device(a karaoke machine) and an ios/android device to transfer SQLite data between them.
The ios/android app literally spin up a HTTP server run on the phone, the device just hit it to download file up to 20MB. I was dumb and didn' think much, and it just works. It works so well I never pay attention to it. Eventually the app evolve where the entire config is push this way, one can open the app, edit config, and it save these into XML file. The setipbox will download that XML file.
Then even better, there is a webserver run on the phone, where one on the same wifi network can hit it and edit all the config on a very simple website instead of using the app UI. Such as upload file from your desktop into the phone(the song book).
Of course, the app needs to be running for all this to work. When the app close, the webserver is also shut down.
So yes, even in 2012 on those cheap devices, one can run a full feauted webserver on the web server.