5.1. SMNetworkManager
Class to set printer’s network settings.
Constructor
Name
Contents
Creates the instance.
Method
Name
Contents
Gets the value specified from the printer.
Set the specified value to the printer
Supported Method for each models.
Model/Emulation |
mC-Print2 | mC-Print3 | mC-Label3 |
---|---|---|---|
StarPRNT | StarPRNT | StarPRNT | |
loadWithError |
✔ | ✔ | ✔ |
applyNetworkSetting |
✔ | ✔ | ✔ |
5.1.1. init
Creates the instance.
5.1.2. loadWithError
Gets the value specified from the printer.
Declaration
+ (SMNetworkSetting *)loadWithError:(NSError **)error;
Parameter
None
Return value
Contents
Type
Network Settings
Exception
Contents
Type
When port open failsWhen an incorrect portName is passedwhen a communication failure occurs
5.1.3. applyNetworkSetting
Set the specified value to the printer
Important
The printer is reset after this method was executed.
Declaration
+ (BOOL)applyNetworkSetting:(SMNetworkSetting *)networkSetting error:(NSError **)error;
Parameter
Name
Contents
Type
setting
Network Setting Information
Return value
None
Exception
Contents
Type
When port open failsWhen an incorrect portName is passedwhen a communication failure occurs