Hello John,
i found the error in my paho script
i try with “client.tls_set(awsCert, deviceCertificate, devicePrivateKey, ssl.CERT_REQUIRED, ssl.PROTOCOL_TLSv1_2)”
only Python >2.7.8
but your implementation is “client.tls_set(awsCert, deviceCertificate, devicePrivateKey, ssl.CERT_REQUIRED, ssl.PROTOCOL_SSLv23)”
for Python 2.7.3
I do not understand very well the security implementation. SSLv2 or SSLv3 is not the same as TLSv1.2
TLSv1.2 is not yet condition for AWS Iot?
And a other question and remark.
Some time ago i tested the Arduino C++ Paho Implementation. Its running good but after seven days or two,
(was very different) the Arduino stopped to send MQTT Messages.
Then I had a discussion with Ian Craggs. Ian saw its a memory overflow.
Many strings the change for the MQTT Messages in a small Embedded Device and Memory is not the solution for a long time.
Whats the reason thats amazon build of the complete Paho C++ Implementation than communitcation to serial?
There are already test for a long time with this implementation?
Best Regards
Reiko
Glad to hear you're trying out AWS IoT with the Yún. I encourage you to check out the AWS supported Yún SDK here:
It is the goal of this SDK to allow developers to target AWS IoT using the Arduino IDE and do minimal setup on the AR9331 processor / OpenWRT OS. To accomplish this the SDK creates a python process
on the linux processor which uses the Paho python MQTT client and communicates with the user's Arduino sketch using the serial bridge. Documentation in the repo above gives a good description of this architecture. One of the packages installed by the setup
script is python-openssl which enables the TLS connection to the service. This SDK also includes the source for the python runtime so you could take a look at that if you'd like to connect using your own python program on the AR9331.
a questions to amazon AWS IoT Paho Implementation.
AWS IoT needs TLS V1.2.
But what is the difference to Arduino YUN Implementation in C++ and the other way in Python?
At YUN runs only Python 2.7.3 without TLS V1.2 support. :-(
With Python 3.5 and "import paho.mqtt.client as mqtt" i can connect and subscribed AWS IoT.
Whats the trick and other side of “AWS IoT Arduino YUN Paho C++ Implementation” that could connect with TLS V1.2?
Reiko