Skip to main content

Questions tagged [callbacks]

This refer to the call back procedure in computer programming.

Filter by
Sorted by
Tagged with
0 votes
1 answer
186 views

I am looking at refactoring my code by implementing callback functions in order to be able to reuse the abstract logic of other functions/classes. However, I feel I need to learn more about the limits ...
Erik's user avatar
  • 271
1 vote
2 answers
229 views

I'm new to C++. How to make a menu without if() {} else {} & switch() case? I made a menu on an array, but for some reason it doesn't compile. How to correct it? typedef void (*cbd)(uint8_t, ...
Andre's user avatar
  • 27
-1 votes
1 answer
121 views

I would like to share interrupt routine between class. I followed this tutorial. But I need to call a member function in callback function, I have the issue : This is my code : Timer.h static void (*...
oAGAo's user avatar
  • 3
0 votes
1 answer
1k views

I created a small library, which takes a callback function: MyClass::add_callback(bool (*callback_function)(), byte behaviour) { // ... bool result = callback_function(); // ... } So far, I'm ...
MacFreek's user avatar
  • 103
0 votes
1 answer
463 views

As I been learning Arduino (micro controllers, c++, etc) I have learned that memory is very limited. I already understand how memory works when it comes to variables. But I do not understand how ...
Tono Nam's user avatar
  • 986
1 vote
2 answers
2k views

This question is somewhat similar to How to pass non-static class member to callback?, but there are a few differences, especially since a lot of my uses have "interesting" additional complexities. I'...
user avatar
0 votes
1 answer
880 views

I am trying to develop a class for a pump that works on a stepper motor, it should be simple but its not working the way I thought it would. Once I move the timer object into the class the code wont ...
cameroony's user avatar
1 vote
2 answers
4k views

I am new to ESP programming on Arduino, as before I was developing on eLua. There were some memory problems in Lua, so I decided to move to Arduino. After looking at some examples, I found a library ...
mansoor's user avatar
  • 11
6 votes
2 answers
12k views

I want to write a class that allows the user to attach his own function to a member function that listens for messages coming from a wireless module, so that the user's function can be called ...
Vasil Kalchev's user avatar
5 votes
1 answer
3k views

Are there any MQTT libraries that do not block while connecting? I'm currently using PubSubClient, and the connection part contains this code: https://github.com/knolleary/pubsubclient/blob/master/...
Stephen Denne's user avatar
0 votes
4 answers
982 views

I am trying to create an array of structs that contain pairs of Strings and Callbacks the problem I am having is assigning the callback function. I have the following code: #define UI_ROUTINE_ITEMS ...
Andy Braham's user avatar