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
Hello guys, I have 10 sensors that I am reading with analogRead and storing in int data[10] on M4. I need to declare and bind a function on M4 that can return either a String (concatenated values separated by commas) or directly the array of integers onto M7.
Issue:
I have tested all other data types as return types for the function to be bound in RPC and apart from int, float and char, any other is not working. Is there any way to overcome this?
expecting a postive response. thanks
The text was updated successfully, but these errors were encountered:
Hi @njadNissi , standard c++ containers are supported, so you can push the values in a std::vector<int> and use it as return value for the serving RPC function.
Let me know if it works fine 🙂
Problem case:
Hello guys, I have 10 sensors that I am reading with
analogRead
and storing inint data[10]
on M4. I need to declare and bind a function onM4
that can return either aString
(concatenated values separated by commas) or directly the array of integers ontoM7
.Issue:
I have tested all other data types as return types for the function to be bound in
RPC
and apart fromint
,float
andchar
, any other is not working. Is there any way to overcome this?expecting a postive response. thanks
The text was updated successfully, but these errors were encountered: