Web-Bluetooth-Terminal
Web-Bluetooth-Terminal copied to clipboard
Close then Reopen fails
Finally back to using your code and web page example, find that if I connect, send some data, then disconnect, wait a bit, then reconnect to the same device, data will not be sent after the second connect. It fails in your web page terminal example as well as my code which uses your same JS. I have to refresh the screen on your web terminal as well as refresh my page with my code to make the connection and sends work again. It seems like something is not cleared on disconnect that should be cleared, and it takes a refresh to make it work. Please take a look at this. Thank you for your help.
Hi @jackdaddy69
- Do you disconnect manually from the web page?
- Did you get the data on the connected device? Is it full?
If I push your disconnect button, then wait, then press your reconnect button, reconnect, then I do not get any data displayed. I have not verified yet, whether send data arrives at my HM10 (I am guessing send data does arrive) but I know that receive data is not displayed on your text area. If I refresh your page (which auto disconnects), then connect, everything returns to display just fine. So I know my Microchip AVR chip is working just fine and the HM10 is working just fine. This is on Chrome 71 on Linux 19.1 and my Oreo 8 phone does the same thing. Maybe something is wrong with how you unwind from the disconnect button? Not Sure.
I have not verified yet, whether send data arrives at my HM10 (I am guessing send data does arrive) but I know that receive data is not displayed on your text area.
That's the critical point - if the issue lie with the web page or with the device.
I verified that the data DOES reach the Microchip AVR and I do respond on the AVR with data. The data does not make it back to the web page.