BTWriteln


BTWriteln channel, data$

This command writes a string as bytes to a Bluetooth serial channel. The string is sent followed by a newline character "\n". It is important to note that only the lower eight bits of each character is written to the Bluetooth serial channel. The strings being written should be thought of as containing bytes.


BTWriteln 1, data$

err$ = BTGetError$(1)
if err$ <> "" then Print "Err: "; err$
if BTGetState(1) <> 1 then Print "Connection Lost"




Bluetooth On|Off


Bluetooth device pairing


BTClose


BTConnect


BTDiscoverable


BTGetAddress$()


BTGetError$()


BTGetName$()


BTGetPaired$()


BTGetSize()


BTGetState()


BTListen


BTRead$()


BTRead


BTReadln


BTReadUTF


BTWrite


BTWriteUTF







Become a Patron