Serial library

Got an idea for enhancing SpiderBasic? New command(s) you'd like to see?
Quin
Posts: 118
Joined: Wed Nov 08, 2023 4:38 pm

Serial library

Post by Quin »

PureBasic has a library for communicating with serial ports. For the longest time, this wasn't possible from a browser context, but Chrome at least now exports APIs that work, navigator.serial and so on. It would be great to have these functions as part of a standard serial library in SB, I currently need an Android app to communicate with a serial device via the USB port. Mayhaps a Cordova plugin can do it too?
User avatar
Caronte3D
Posts: 189
Joined: Sat Nov 23, 2019 5:21 pm
Location: Some Universe

Re: Serial library

Post by Caronte3D »

Chrome also support bluetooth, so would be nice to have ir on SB
plouf
Posts: 295
Joined: Tue Feb 25, 2014 6:01 pm
Location: Athens,Greece

Re: Serial library

Post by plouf »

Would be intresting to have serial :-)
Christos
plouf
Posts: 295
Joined: Tue Feb 25, 2014 6:01 pm
Location: Athens,Greece

Re: Serial library

Post by plouf »

Ok i have try to test pure js in serial stuff but my chrome has NO option in settings->more advance->SerialPort. In order to enable it
I see no option at all, while in chrome dev says youust enable it!

So i ask. Do you have this option ?! (Serialport in chrome settings)
Christos
Post Reply