Hello Everyone
I believe this is only my second post and I have come here to contribute
Before I contribute, please allow me to say thank you to Erel for his [B4XPages] Bluetooth Chat Example, because without it, my contribution would not be possible. His example can be found here: https://www.b4x.com/android/forum/threads/b4xpages-bluetooth-chat-example.119014/
Now for the details... Ahhhh.... I will just summarize it Basically I took his chat example and added a WebView, along with WebViewExtras. In the WebView, I have an HTML form, supported and validated with JavaScript. Within the JavaScript, I utilize the member CallSub from the WebViewExtras library, to pass data back to the B4A app.
By altering the HTML, the HTML form, and the JavaScript, as well as perhaps adding additional CallSub calls, many things can be achieved and controlled with this example, very easily. It is intended for Bluetooth communication. I am using something very similar to this example application, to send commands to an RN-42 Bluetooth module, which passes those commands onto a Parallax Propeller uC, for machine control, and it does the job perfectly (so far ).
Anyhow, check it out, because it may help you find a solution. 42Nurses = RN-42
EDIT: Please download the example in the following post, because it is better
I believe this is only my second post and I have come here to contribute
Before I contribute, please allow me to say thank you to Erel for his [B4XPages] Bluetooth Chat Example, because without it, my contribution would not be possible. His example can be found here: https://www.b4x.com/android/forum/threads/b4xpages-bluetooth-chat-example.119014/
Now for the details... Ahhhh.... I will just summarize it Basically I took his chat example and added a WebView, along with WebViewExtras. In the WebView, I have an HTML form, supported and validated with JavaScript. Within the JavaScript, I utilize the member CallSub from the WebViewExtras library, to pass data back to the B4A app.
By altering the HTML, the HTML form, and the JavaScript, as well as perhaps adding additional CallSub calls, many things can be achieved and controlled with this example, very easily. It is intended for Bluetooth communication. I am using something very similar to this example application, to send commands to an RN-42 Bluetooth module, which passes those commands onto a Parallax Propeller uC, for machine control, and it does the job perfectly (so far ).
Anyhow, check it out, because it may help you find a solution. 42Nurses = RN-42
EDIT: Please download the example in the following post, because it is better
Attachments
Last edited: