Commit Graph

2 Commits

Author SHA1 Message Date
4a083555e8 Clean up RPC response.
- 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
2018-01-24 14:08:29 +01:00
4679636fdc Initial checkin. 2018-01-05 16:58:15 +01:00