smallpoul:
... it freeze.
What does freeze mean in this context?
CrossRoads:
Isn't this the problem?int r = firstValue.toInt();
int g = secondValue.toInt();
int b = thirdValue.toInt();These are ints (0x0000 to 0xFFFF), while analogWrite expects bytes (0x00 to 0xFF)?
That should produce a compiler error. I think freeze means the sketch doesn't work anymore.