BRLMChannel
Channel information to your printer.
Overview
You use this object to specify your printer. To send data to your printer, you initialize this class and pass it to BRLMPrinterDriverGenerator
.
If you change your channel, you initialize this class again.
Instance methods
initWithWifiIPAddress:
Initialize this class with an IP address of your printer to connect through a network.
Declaration
- (instancetype)initWithWifiIPAddress:(NSString *)ipAddress;
Parameters
Name | Type | Description |
---|---|---|
ipAddress | NSString * | IP Address of your printer |
initWithBluetoothSerialNumber:
Initialize this class with a serial number of your printer to connect through a bluetooth.
Declaration
- (instancetype)initWithBluetoothSerialNumber:(BRLMExternalAccessorySerialNumber *)serialNumber;
Name | Type | Description |
---|---|---|
serialNumber | BRLMExternalAccessorySerialNumber * | A bluetooth serial number of your printer |
initWithBLELocalName:
Initialize this class with a local name of your printer to connect through a bluetooth low energy.
Declaration
- (instancetype)initWithBLELocalName:(NSString *)localName;
Parameters
Name | Type | Description |
---|---|---|
localName | NSString * | A local name for bluetooth low energy of your printer |
Properties
channelType
A channel type which is set in initializing you called.
For allowed values, see BRLMChannelType
.
Declaration
@property (nonatomic, readonly) BRLMChannelType channelType;
channelInfo
Channel information such as an IP Address and filepath you passed in initializing.
Declaration
@property (nonatomic, readonly) NSString *channelInfo;
extraInfo
Printer information such as model name and serial number. This only has a value when the BRLMChannel is generated by BRLMPrinterSearcher
.
You can get following value using BRLMChannelExtraInfoKey
.
Declaration
@property (nonatomic, readonly, nullable) NSMutableDictionary<BRLMChannelExtraInfoKey*, NSString*> *extraInfo;
Value | Key | Description |
---|---|---|
Model name | BRLMChannelExtraInfoKeyModelName | The printer's model name (e.g. QL-1110NWB)(*1) |
Serial number | BRLMChannelExtraInfoKeySerialNumber | The printer's serial number |
MAC address | BRLMChannelExtraInfoKeyMacAddress | The printer's MAC address. nil is stored for Bluetooth/Bluetooth Low Energy connected devices. |
Node name | BRLMChannelExtraInfoKeyNodeName | The printer's node name. nil is stored for Bluetooth/Bluetooth Low Energy connected devices. |
Location | BRLMChannelExtraInfoKeyLocation | The printer's location string. nil is stored for Bluetooth/Bluetooth Low Energy connected devices. |
Info
(*1) For TD-23XX series, Model name does not indentify the model.
For example, if Model name is "TD-2350D". The model is either TD-2350D_203 or TD-2350D_300.
Use getPrinterStatus
to identify the model.
Types
BRLMExternalAccessorySerialNumber
Declaration
typedef NSString BRLMExternalAccessorySerialNumber;
BRLMChannelExtraInfoKey
Declaration
typedef NSString BRLMChannelExtraInfoKey;