bluetooth on pda

trigstig

Member
Licensed User
ok so ive got my bluetooth working between a pc and pda,
using the serialterminal example. can some one tell me is there an easy way to skip these stages
when i "openport" i am prompted to pick a device
using the pda bluetooth device list
which the pda has found lets say its found the PC and a phone
the pc name is "3gig"
i click on "3gig" it then asks me to pick a serial port with a list like
"serial port A"
"serial Port B"

so long as i dont loose the bluetooth connection and the program remains running im ok to send data.

is there a way of telling the serial.dll too hook up to "3gig" with a string like
connect to '3gig,A' for instance as the program starts

basicly put all of this on one button


1- open port
2-use "3gig"
3-use "serial Port A"
4- connected done :)

baud rate and port are set in the program but the device to use isnt or if it is i havent found it yet.
Any Advice?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
The hook should be done in your device configuration. The serial object opens a com port. It doesn't know anything else about it.
The device OS does the actual connection between the numeric com port and the required device.
Does the computer appear as a 'paired' device? You should be able to assign the port to a specific paired device.
 
Top