Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 35534

Refers to code that present variables in the form of an array.

1 vote
2 answers
2k views

strcmp doesn't seem to work

I'm trying to compare a char array that I'm assembling to a string and I'm having trouble comparing the strings. … I'm getting the data for the char array as a set of bytes and I'm compiling it into a char array like this: void messageHandler(char *topic, byte *payload, unsigned int length) { char buffer[length]; …
Chris Schmitz's user avatar
0 votes
1 answer
573 views

esp32 crashes when trying to dereference a pointer value

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, adds that integer to an array … = 0; for (int j = 0; j < 4; j++) { chunk <<= 8; chunk |= raw.at(i + j); } chunks[chunkIndex] = chunk; chunkIndex++; } return chunks; } And I know that parsing and array
Chris Schmitz's user avatar
1 vote

esp32 crashes when trying to dereference a pointer value

I refactored my code to move the array outside of the scope of the parsing function and passed the pointer in to the parsing function to get populated: void get32BitInt(WebsocketsMessage message, uint32 …
Chris Schmitz's user avatar
0 votes
2 answers
1k views

Passing a two dimensional array to a function

, (which would mean I'm passing the memory address to the first pointer element of the multi-dimensional array (I think)), but when I do this the pattern runs backwards and is jittery :| https://vimeo.com … I'm still fairly new to pointers so I'm sure there's something I'm misunderstanding with passing a pointer for a multi-dimensional array, but I thought what I was passing was basically an address of where …
Chris Schmitz's user avatar