I have a bluetooth device (led light) to which I can send different commands to. By now everything works fine and all the commands work. Now I want to send a custom command. The documentation says the following: [0X99] + [24 bit colorimetric value (R=?,G=?,B=?)] + [8bit speed value] + ...
Now I don't know how to get the 24 bit colorimetric value from an UIColor.