azure-iot-sdk - 基于 websockets 的 IoT Edge Mqtt
问题描述
我有一个小的边缘模块,使用 azure-iot-sdk-python 用 python 编写,它使用 Mqtt 将事件发送回 IoT 中心。这很好用。
当我切换到通过 websockets ( ) 使用 Mqtt 时,不再传递事件IoTHubTransportProvider.MQTT_WS
。
在 edgeHub 日志中,我可以看到:
2018-06-14 07:33:33.599 +00:00 [ERR] [Microsoft.AspNetCore.Server.Kestrel] - Uncaught exception from the OnConnectionAsync method of an IConnectionAdapter.
System.Security.Authentication.AuthenticationException: A call to SSPI failed, see inner exception. ---> Interop+OpenSsl+SslException: SSL Handshake failed with OpenSSL error - SSL_ERROR_SSL. ---> Interop+Crypto+OpenSslCryptographicException: error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol
当我手动将注入的EdgeHubConnectionString
(export EdgeHubConnectionString=...
Device Details
如何使用注入的EdgeHubConnectionString
模块连接字符串通过 websockets 获取 Mqtt,而不是从“设备详细信息”页面获取?
解决方案
推荐阅读
- html - 如何在 Html / Bootstrap 中控制容器的大小?
- oracle - Jenkins Oracle 身份验证
- logic - 将引理应用于合取分支而不在 coq 中拆分
- dataframe - 在 DataFrame 中操作数据:如何计算列的平方
- javascript - 基于映射数组字段的 React Native 条件样式
- ios - 带有 UIViewRepresantable 的 UITableView 的某些单元格位置错误
- pyspark - 使用 regexp_replace 在 pypsark 上循环出现错误消息
- php - 从保存在数据库中的树枝模板中提取变量。树枝, PHP/Symfony
- javascript - 在 VueJS 中重用现有的 AngularJS 服务
- node.js - 如何使用angular 8以任何格式从mongodb搜索电话号码