Thingsboard IOT Gateway RPC Commands

Hi,

Can anyone assist me with example code for RPC Commands from Thingsboard via Thingsboard IOT Gateway to MQTT and then my Arduino.

I have manged to get Telemetry and Attribute data up to Thingsboard from the Arduino but am really struggling getting data back using RPC.

Thanks.

Sorry, I am using SubPubClient.h