Autodrop3d / serialTerminal.com

A browser based serial terminal. No plugins. Vanilla javascript.
https://www.serialterminal.com
ISC License
200 stars 46 forks source link

Doubt with connection using a server #48

Closed lanpersi closed 4 months ago

lanpersi commented 4 months ago

Hello MIke.

Great job with serieTerminal's project.

I'm working on a project based on your code. My project is to connect an Arduino with a tablet. This tablet will access to my server. When i access to my webpage using the tablet and i try to connect with the Arduino, the page shows me this message:

Serial Connection FailedTypeError: Cannot read properties of undefined (reading 'requestPort')

But is strange. If I start an apache server to run local the project in the tablet it functions, but if i try to connect with the same project in a server, it didn't function.

So, i think there is a restriction with the API when i try to connect to the API when it's in another server in the network, or something like that.

I tried too whit your project and is the same situation.

Can you support me? please.

Thank you in advance.

Regards! error_Serial

lanpersi commented 4 months ago

I read the documentation and y see that is for the HTTPS. I included a TLS in my server and the API functions.