thingsboard-client-sdk icon indicating copy to clipboard operation
thingsboard-client-sdk copied to clipboard

Error:no matching function for call to 'ThingsBoardSized<128>::RPC_Subscribe(RPC_Callback [4], unsigned int)'

Open ISHAMUGHAL opened this issue 3 years ago • 1 comments

I have worked on that code using ESP32. But i am facing this error. If anyone can guide me here.

ISHAMUGHAL avatar Sep 15 '22 11:09 ISHAMUGHAL

Hi, do you use the latest version of the sdk and esp? Could you provide an example of your not working code? I have checked the example and actually it builds normally, without this issue.

imbeacon avatar Sep 16 '22 12:09 imbeacon

If you have a look at Example_0002, you should see a small working example on how to use the Arduino ThingsBoard SDK to subscribe to RPC.

I'm assuming you used the RPC_Subscribe() command like this:

RPC_Subscribe(yourArray, 4)

This is not a valid parameter for this method tough, a working example would look like this

RPC_Subscribe(yourArray.cbegin(), yourArray.cend())

See the full example if you want to learn more.

MathewHDYT avatar Dec 07 '22 19:12 MathewHDYT

@imbeacon I think this issue can be closed, as well the examples work and are a good basis to start using the library.

MathewHDYT avatar Mar 13 '23 12:03 MathewHDYT