Platforms to show: All Mac Windows Linux Cross-Platform
WindowsBlueToothSocketMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Bluetooth | MBS Bluetooth Plugin | 18.1 | ❌ No | ✅ Yes | ❌ No | ❌ No | All |
- 4 events
- event DataAvailable
- event Error
- event NewConnection
- event SendComplete
- 17 properties
- property Authenticate as Boolean
- property AvailableBytes as Integer
- property BindAddress as String
- property BindPort as Integer
- property Encrypt as Boolean
- property Handle as Integer
- property Lasterror as Integer
- property LastErrorMessage as String
- property Listening as Boolean
- property LocalAddress as String
- property LocalPort as Integer
- property MTU as Integer
- property MTUMax as Integer
- property MTUMin as Integer
- property RemoteAddress as String
- property RemotePort as Integer
- property SDPRecordID as Integer
- 14 methods
- method Accept(byref RemoteAddress as String, byref RemotePort as Integer, NewSocket as WindowsBlueToothSocketMBS) as WindowsBlueToothSocketMBS
- method Bind(Port as Integer = -1, BluetoothAddress as string = "")
- method Close
- method Connect(BluetoothAddress as string, Port as Integer, ServiceClassGUID as String = "", Blocking as boolean = true)
- method Constructor
- method Listen(BackLog as Integer = 2)
- method Poll
- method PublishRecord(SDPRecord as MemoryBlock)
- method Read(size as integer, peek as boolean = false) as String
- method ReadAll(peek as boolean = false) as String
- method RegisterService(ServiceClassGUID as String, InstanceName as String, Comment as String = "")
- method Send(data as MemoryBlock) as Integer
- method Send(data as String) as Integer
- method UnpublishRecord
Constants
Constant | Value | Description |
---|---|---|
kPortAny | -1 | Any port. |
This class has no sub classes.
Some examples using this class:
Blog Entries
- MBS Xojo Plugins, version 23.4pr2
- MBS Xojo Plugins, version 18.4pr9
- MBS Xojo Plugins 18.3
- MBS Xojo Plugins, version 18.3pr4
- Bluetooth for Xojo
Release notes
- Version 23.4
- Added blocking parameter for Connect method in WindowsBlueToothSocketMBS class.
- Version 18.4
- Fixed bugs in WindowsBlueToothSocketMBS.Accept function.
- Version 18.3
- Added Bluetooth classes for Windows: WindowsBlueToothSocketMBS, WindowsBlueToothServiceMBS, WindowsBlueToothSelectDeviceDialogMBS, WindowsBlueToothRadioMBS, WindowsBlueToothRadioInfoMBS, WindowsBlueToothDeviceSearchParameterMBS, WindowsBlueToothDeviceMBS and WindowsBlueToothDeviceInfoMBS.
- Added WindowsBlueToothSocketMBS class for regular Bluetooth connections.
The items on this page are in the following plugins: MBS Bluetooth Plugin.
WindowsBlueToothServiceMBS - WindowsBurnMBS