简体   繁体   English

如果我知道 iOS 中的 IP 地址,如何获取 Zebra 打印机名称?

[英]How to get Zebra Printer Name if I know the IP address in iOS?

I am using the Zebra printers.我正在使用 Zebra 打印机。 I am able to get the printers in the current network, but I am not able to get it's names using the IP.我能够获得当前网络中的打印机,但我无法使用 IP 获得它的名称。

I am following the below docs.我正在关注以下文档。 https://techdocs.zebra.com/link-os/2-13/ios/ https://techdocs.zebra.com/link-os/2-13/ios/

Any help is appreciated.任何帮助表示赞赏。

Thanks谢谢

You will want to use the NetworkDiscoverer class directed at that IP address.您将需要使用指向该 IP 地址的 NetworkDiscoverer class。 in the return data when the printer responds you will find the printer name.在打印机响应时的返回数据中,您将找到打印机名称。

For an example pull down the demo that is part of the SDK.例如,下拉作为 SDK 一部分的演示。 You can build and run that to see how it works.您可以构建并运行它以查看它是如何工作的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM