【问题标题】:React Native scan printers when connected to wifi network and get ip address of the printer连接到 wifi 网络时 React Native 扫描打印机并获取打印机的 IP 地址
【发布时间】:2020-10-10 13:47:08
【问题描述】:

您好,我正在寻找在 React Native(Android 和 iOS)中扫描连接到我的网络的打印机设备并获取选定的打印机 IP 地址。到目前为止,我尝试的是:

1. https://github.com/leesiongchan/react-native-esc-pos -- 给我设备 mac_address

2. https://github.com/bencomtech/react-native-pos-printer -- 它给了我设备的 ID

但我需要 IP 地址,是否有任何模块可以检测这两种跨平台的此类场景。 谁能建议我完成这项任务

【问题讨论】:

    标签: reactjs react-native printing zebra-printers thermal-printer


    【解决方案1】:

    我认为您将无法找到执行此特定任务的 RN 库。您必须编写本机实现并将其打包为 RN 模块。

    安卓:https://developer.android.com/guide/topics/connectivity/wifi-scan

    iOS:https://developer.apple.com/library/archive/qa/qa1942/_index.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-11-02
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多