Control Omega LED from WEB



You can now switch the onboard LED state using this widget.

Control Expansion Board RGB LED from WEB



You can now change the RGB LED color using these widgets.

Secure your MQTT connection

Cloud4RPi supports the TLS-enabled MQTTs protocol. If your task requires an encrypted data transfer, follow the steps below:

  1. Install a package that provides the CA certificates for SSL and TLS protocols:

sh opkg update && opkg install ca-certificates

  1. Enable TLS by changing the cloud4rpi.connect() method call as follows:

    python device = cloud4rpi.connect(DEVICE_TOKEN, tls_config={'ca_certs': '/etc/ssl/certs/ca-certificates.crt'})

    The tls_config dictionary holds parameters for the Paho MQTT's tls_set() function.