help with irsend AC commands convert String to unsigned char array #2052
-
Hi, I am getting IR data via MQTT and saving it as String. In most AC irsend commands the data / state variable is const unsigned char []. what I am currently doing is String str = doc["hex"]; eg if I want to send Fujitsu_AC protocol
When I use IRdump V3 to check the received code and protocol I get UNKNOWN and a random hex while I am sending following in my mqtt message |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 14 replies
-
That is certainly not how you convert a very long hex string into an array. Try looking in the IRMQTTServer source code for how it does it This is not a library problem, this a "how you write code" problem. |
Beta Was this translation helpful? Give feedback.
That is certainly not how you convert a very long hex string into an array. Try looking in the IRMQTTServer source code for how it does it
This is not a library problem, this a "how you write code" problem.