Casting/converting String to unsigned 32-bit int

Hello again!

I wrote some code that parses 3 integer values (R G and B for an LED strip) as a response from a web server.

I have these values as characters, and can easily convert them to Strings or integers, but the Adafruit NeoPixel library I'm using needs the values as uint32_t

Any suggestions for getting this done?

strtoul?

composite RGB values, in one uint32_t, or three individual uint32_t RGB values?

You can set a specific LED to a color using three integers: (red, green, and blue are integers from 0 to 255).

strip.setPixelColor(n, red, green, blue);

There is also a built-in function to convert three integers to the properly formatted 32-bit value

uint32_t new_color;



new_color = strip.Color(red, green, blue);

aarg:
composite RGB values, in one uint32_t, or three individual uint32_t RGB values?

Ahhhh, I see now. I didn't notice this at first.

As david_2018 pointed out,

david_2018:
You can set a specific LED to a color using three integers: (red, green, and blue are integers from 0 to 255).

strip.setPixelColor(n, red, green, blue);

There is also a built-in function to convert three integers to the properly formatted 32-bit value

uint32_t new_color;

new_color = strip.Color(red, green, blue);

strip.Color takes what seems to be 3 integers and returns that 32-bit unsigned integer.
Will give this a try in a bit but I swear I already tried without luck.

Thank you all!