Questions tagged [pointer]
A variable in C/C++ which stores the type and location of data in memory.
8
questions with no upvoted or accepted answers
2
votes
0answers
132 views
Storing an array of objects
I followed the instructions of this post: Storing an array of function pointers.
To show my problem I shorted my code extremely but the problem is still there.
My classes are defined as followes:
...
1
vote
0answers
101 views
Using pointer to a Global function
I am trying to store and use a pointer to a global function.
The function global_f returns a String and takes an object as parameter:
String global_f(Request r){
// ...
return "This is it";
}
...
0
votes
1answer
41 views
esp32 crashes when trying to dereference a pointer value
I have a websocket listener that is giving me a std::string of my message payload (I want the bytes) and I wrote a function that pulls each of the bytes out and puts them into 32 bit integer variables,...
0
votes
1answer
65 views
converting an unsigned integer into a const char pointer
I know this is simple basic C stuff, but I can't quite figure it out or find a solution when searching and reading.
I have a method I want to call from a library that wants a const char pointer
...
0
votes
0answers
719 views
No known conversion for argument 1 from 'Object*' to 'int*'
I'm terrible with pointers and need help passing an object to a library I'm writing. I'm getting the error no known conversion for argument 1 from 'LCDMenuItem*' to 'int*' when I try to compile. How ...
0
votes
0answers
75 views
Losing value of variable
I am making a project involving the AutoConnect, ArduinoJSOn and LedControl libraries to fetch some values from an endpoint.
Basically what I do is connect to the internet, fetch the values from a ...
0
votes
0answers
195 views
Overwrite image buffer (inside Adafruit SSD1306)
I'd like to add a method that replaces the entire image buffer into the Adafruit_SSD1306 library. I haven't worked with dynamic memory handling for ages and I'm not sure how to just simply overwrite ...
-1
votes
1answer
81 views
Multiple Serial Ports Stream Switch
I am trying to define multiple serial ports (multiple BMS management boards) and select via a global variable the port which one is active, this is the sketch I am trying to modify.
https://github....