Add variable to device existed in ubidots


#1

Hi ,
I have read the artical of Maria in ((https://help.ubidots.com/en/articles/513315-connect-an-arduino-uno-ethernet-shield-to-ubidots-over-http#arduino-ethernet)), the statment “client.add(VARIABLE_LABEL_1, value_1);” add variable to new device named arduino ethernet.
How can I modify the code to send variables to device already exist in my account? for examole , send to “plc”.
Regards.


#2

Hi there, from the library docs you should use the method setDeviceLabel()

All the best