Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Your title here #10769

Open
osquillar570 opened this issue May 13, 2024 · 0 comments
Open

Your title here #10769

osquillar570 opened this issue May 13, 2024 · 0 comments
Assignees
Labels
question generic question

Comments

@osquillar570
Copy link

Component

  • UI
  • Rule Engine
  • Installation
  • Generic

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))
{

      Serial.println("Fallo al subscribirse para RPC");
      delay(500);
      return;
    }

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

  • OS: MAC
  • ThingsBoard: Cloud
  • Browser: Firefox
@osquillar570 osquillar570 added the question generic question label May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question generic question
Projects
None yet
Development

No branches or pull requests

2 participants