4a083555e8d2dd62d438a8a42da02cd31249f321
- Refactor mqtt_publish_stat() to take va_list - Make publish_stat format its response with json_vprintf() so it is valid JSON. - Call publish_stat in channel_set, the only place where the GPIO state changes - Return (valid) JSON response in all RPCs
GPIO for 3-gang
- 0: Top green LED
- 16: Top blue LED
- 14: Middle blue LED
- 2: Bottom blue LED
- 12: Top button
- 3: Middle button
- 5: Bottom button
- 13: Top relay (L1)
- 4: Middle relay (L2)
- 15: Bottom relay (L3)
Description
Languages
C
99.2%
Shell
0.6%
Makefile
0.2%