簡體   English   中英

Bluemix IoTF 連接錯誤 - Python

[英]Bluemix IoTF connection error - Python

朋友們,

我已經在 IBM Bluemix IoTF 中創建了一個設備,生成了身份驗證令牌,一切都設置好了。 我正在嘗試使用 Python(ibm-iotf 庫)連接並向該設備發送消息,並且該程序已創建。 但是當我運行程序時,我收到以下錯誤。 請幫忙。

2016-03-21 11:04:15,786 ibmiotf.device.Client WARNING Unable to encrypt messages because TLSv1.2 is unavailable (MQTT over SSL requires at least Python v2.7.9 or 3.4 and openssl v1.0.1)

[Errno 10054] An existing connection was forcibly closed by the remote host

2016-03-21 11:04:16,446 ibmiotf.device.Client ERROR Unexpected disconnect from the IBM Internet of Things Foundation

2016-03-21 11:04:16,446 ibmiotf.device.Client INFO Messages published : 0, life: 1s, rate: 1/0.00s

2016-03-21 11:04:16,446 ibmiotf.device.Client INFO Messages received : 0, life: 1s, rate: 1/0.00s

根據文檔:物聯網平台需要 TLS v1.2。 我們建議使用以下密碼套件:ECDHE-RSA-AES256-GCM-SHA384、AES256-GCM-SHA384、ECDHE-RSA-AES128-GCM-SHA256 或 AES128-GCM-SHA256。

確保您有 Python 版本和 Open SSL 1.0.1,它提供對 TLS v1.2 的支持

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM