Hi, I have nodemcu V3 and IR receiver.
I use the sketch IRrecvDumpV2 from IRremoteESP8266 to decode the data from the AC remote control, I receive this string from my remote control:
Blockquote
Power: On, Mode: 1 (Cool), Temp: 26C, Fan: 1 (Low), Turbo: Off, Quiet: Off, XFan: Off, Ion: On, Light: On, Swing(H): Off, Swing(V): On
I want to split the string to store the name and the state separatly to send the data to the mqtt and the HA.
actually json should have more quote.
The code use String for the data.
Their is a strtok command to separate a string I didn’t try it yet. strtok() function