More documentation on using MicroPython with IOT Cloud please

I have been a successful user of IOT Cloud for a couple of years - of course in C/C++.
I am learning and experimenting with MicroPython and can install and run on my target device (ESP32). I was pleased to see the tutorial Connecting to Arduino IoT Cloud using MicroPython which works fine.

However, I want to extend the use to include control of coloured LED with the standard variable CloudColoredLight but I cannot find out how to register it and access the variable form MicroPython (MP).

With no registration of the variable in MP, it sees the change in values and reports

None.000 Unkown record found: colour:hue value: 311.0
None.000 Unkown record found: colour:swi value: False
None.000 Unkown record found: colour:sat value: 68.0
None.000 Unkown record found: colour:bri value: 62.0

Attempting to register the colour variable

 client.register("colour", value = None, on_write = on_colour_changed, interval = 0.250)

MP now reports

None.000 Ignoring cloud initialization for record: colour:hue
None.000 Ignoring cloud initialization for record: colour:swi
None.000 Ignoring cloud initialization for record: colour:sat
None.000 Ignoring cloud initialization for record: colour:bri

I would appreciate some assistance/documentation on the registration requirements and the linking to more complex variables from IOT Cloud

Hi @mick3000

Thank you for reaching out. Advanced types need to be registered using their corresponding type (They can be found here. I made one example and added it to the tutorial: https://docs.arduino.cc/arduino-cloud/guides/micropython/#using-advanced-cloud-variables

I hope this helps!

1 Like

Thank you that’s great