You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Hi, I'm facing this compiling issue with 0.10.2 version of thingsboard. I'm using the Finder Opta system but I'm not able to compile the code.
error: no matching function for call to 'ThingsBoardSized<>::RPC_Subscribe(const RPC_Callback [5], const size_t&)'
if (!tb.RPC_Subscribe(callbacks, callbacks_size))
This is the code for the callbacks array declaration
Component
Description
Hi, I'm facing this compiling issue with 0.10.2 version of thingsboard. I'm using the Finder Opta system but I'm not able to compile the code.
error: no matching function for call to 'ThingsBoardSized<>::RPC_Subscribe(const RPC_Callback [5], const size_t&)'
if (!tb.RPC_Subscribe(callbacks, callbacks_size))
This is the code for the callbacks array declaration
const size_t callbacks_size = 5;
// RPC handlers
const RPC_Callback callbacks[callbacks_size] = {
{ RPC_BloqueoCargador, onV2C_Lock_Status},
{RPC_Output1, onOutputRelay1},
{RPC_Output2, onOutputRelay2},
{RPC_Output3, onOutputRelay3},
{RPC_Output4, onOutputRelay4}
};
and this is the function call.
if (!tb.RPC_Subscribe(callbacks, callbacks_size))
{
To me, according with the library and the example all is correct. If I move to a newer version other problems with other libraries arises.
Can someone give some light on this?.
Thanks in advance
Environment
The text was updated successfully, but these errors were encountered: