3. Method
The development environment is C#.
3-1 ConnectToPrinterAsync
This function sets the connection to enable communication with the printer.
async Task<Int32> ConnectToPrinterAsync(string inputAddr)
[Parameters]
* inputAddr
This is [in] string Data. When connecting via Bluetooth interface, the MAC address of a
device that is paired to a Windows phone is received while the IP address and port no.
are received for WiFi connection.
(Bluetooth: xx:xx:xx:xx:xx:xx, Wireless LAN: xxx.xxx.xxx.xxx:9100)
[Return Values]
BxlWinPhoneSDK bxlPrinter = new BxlWinPhoneSDK();
// serial or bluetooth
var ret = await bxlPrinter.ConnectToPrinterAsync(“xx:xx:xx:xx:xx:xx”);
……
// WLAN
var ret = await bxlPrinter.ConnectToPrinterAsync (“xxx.xxx.xxx.xxx:9100”);
……