- Forum posts: 8
Aug 25, 2018, 1:04:25 PM via Website
Aug 25, 2018 1:04:25 PM via Website
Iam looking for suggestions from people that have done something similar.
I basically have a microprocessor board equipped with a Wifi module connected to an Android phone which provides the Access Point. The microprocessor code launches a webserver with a single webpage that displays on my Android application. Ive used a basic webView component. The webpage refreshes every 10 secs showing the status of sensor inputs to the microprocessor.
When a certain trigger is raised on the microprocessor i need this signal accessible inside the Android application. From what ive been reading one needs to use HTTP requests from the Android app (Client) to the webserver and process the response to retrieve the information.
What are the recommended classes that i should use for performing these transactions over Wifi ? It is basically a single integer value that i want to transfer from the microprocessor to the Android app.
Ive tried using HttpClient and HttpsURLConnection and am not making any progress. Ive considered parsing the html code to extract the information but this is rather messy and there must be a more elegant approach.