【问题标题】:react-native-bluetooth getting error when "Debug JS remotely"react-native-bluetooth 在“远程调试 JS”时出错
【发布时间】:2019-06-17 20:47:31
【问题描述】:

我正在使用react-native-ble-manager 库通过运行react-native run-ios 连接我的HM-10 BLE,并且我确实使用example code 成功连接到我的设备。

但是,当我尝试通过选择 Debug JS remotely 打开调试页面时出现错误:

连接到http://localhost:8081/debugger-proxy?role=client 定时 出去。你在运行节点代理吗?如果您在设备上运行, 检查 RCTWebSocketExecutor.m 中是否有正确的 IP 地址

有人知道为什么会这样吗?任何建议或 cmets 将不胜感激!

【问题讨论】:

  • 确保设备和开发机都连接到同一个网络!

标签: react-native bluetooth bluetooth-lowenergy


【解决方案1】:

想通了。原来这是一个网络问题。我必须为开发机器和设备匹配相同的 wifi。

【讨论】:

    猜你喜欢
    • 2019-06-14
    • 1970-01-01
    • 2017-04-04
    • 2022-10-16
    • 2018-06-20
    • 1970-01-01
    • 2017-07-02
    • 1970-01-01
    • 2017-04-25
    相关资源
    最近更新 更多