Example to connect Raspberry Pi to Thinger.io

Hi everyone, could someone share a basic Python example with me to connect my Raspberry Pi to thinger.io?

Hi

The native client has been developed in C, however if you want to use python I recommend you to use a python MQTT client to connect to thinger, I think this could be the easiest way to do it.

Hope this helps.

Hi Ega, I thought there were some simple examples that could serve as a basis for connecting a Raspberry Pi to Thinger.io, similar to the examples posted on the Thinger website for connecting an Arduino or ESP32. I haven’t had any problems using them. I also thought it would be much easier with a Raspberry Pi due to its more robust architecture, but I find connecting a Raspberry Pi is more difficult than an Arduino.
Thanks!

I see… However I would give it a try with the MQTT client as it is standard and its supported by the paho-mqtt, although is not easy as the native integration with the arduino or the esp32 I think it worth a try in order to be familiar with the MQTT protocol, it could be a good exercise and it is fully supported by thinger platform, indeed it has features as the inspector at the device page that for sure may help you to achieve the integration with MQTT devices.

In any case, I share with you the native client for linux/raspberry → LINUX / RASPBERRY PI | Thinger.io Documentation

Hope this helps.