Platforms to show: All Mac Windows Linux Cross-Platform
IOBluetoothRFCOMMChannelMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Bluetooth | MBS Bluetooth Plugin | 18.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
An RFCOMM channel object can be obtained by opening an rfcomm channel in a device, or by requesting a notification when a channel is created (this is commonly used to provide services).
- 7 events
- event Closed
- event ControlSignalsChanged
- event DataReceived(data as MemoryBlock, dataLength as Integer)
- event FlowControlChanged
- event OpenCompleted(status as Integer)
- event QueueSpaceAvailable
- event WriteCompleted(status as integer, tag as Variant)
- 8 properties
- property ChannelID as Integer
- property Device as IOBluetoothDeviceMBS
- property Handle as Integer
- property isIncoming as Boolean
- property isOpen as Boolean
- property isTransmissionPaused as Boolean
- property Lasterror as Integer
- property MTU as Integer
- 9 methods
- method closeChannel
- method Constructor
- method Destructor
- method openRFCOMMChannelAsync(device as IOBluetoothDeviceMBS, channelID as Integer) as Boolean
- method openRFCOMMChannelSync(device as IOBluetoothDeviceMBS, channelID as Integer) as Boolean
- method sendRemoteLineStatus(lineStatus as Integer)
- method setSerialParameters(speed as Integer, dataBits as Integer, parity as Integer, stopBits as Integer)
- method writeAsync(data as MemoryBlock, tag as Variant = nil)
- method writeSync(data as MemoryBlock)
- 8 constants
Line States
Constant | Value | Description |
---|---|---|
kLineStatusFramingError | 3 |
Framing Error |
kLineStatusNoError | 0 |
No Error |
kLineStatusOverrunError | 1 |
Overrun Error |
kLineStatusParityError | 2 |
Parity Error |
Parity Types
Constant | Value | Description |
---|---|---|
kParityTypeEvenParity | 2 |
Even Parity |
kParityTypeMaxParity | 3 |
Max Parity |
kParityTypeNoParity | 0 |
No Parity |
kParityTypeOddParity | 1 |
Odd Parity |
This class has no sub classes.
Some examples using this class:
Blog Entries
Release notes
- Version 18.3
- Added Bluetooth classes for Mac: IOBluetoothServiceBrowserControllerMBS, IOBluetoothSDPUUIDMBS, IOBluetoothSDPServiceRecordMBS, IOBluetoothSDPServiceAttributeMBS, IOBluetoothSDPDataElementMBS, IOBluetoothRFCOMMChannelMBS, IOBluetoothHostControllerMBS, IOBluetoothDeviceSelectorControllerMBS, IOBluetoothDeviceMBS and IOBluetoothDeviceInquiryMBS.
The items on this page are in the following plugins: MBS Bluetooth Plugin.
IOBluetoothHostControllerMBS - IOBluetoothSDPDataElementMBS
