Skip to content

Commit

Permalink
domoticz: refactoring
Browse files Browse the repository at this point in the history
Common functions moved into namespace domoticz { ... }
Module functions moved into namespace { ... }

Remove templates and favour simple function for nvalue & svalue formatting,
and also use ArduinoJson for the JSON serialization.

Detach lights from the 1st relay, introduce `dczLightIdx`
Use named channel functions instead of counting channels manually.
Try to migrate the old settings.

Introduce stronger type for Idx to avoid entity id vs. domoticz idx confusion in function arguments,
since both are numeric and there's no distinction besides the name itself.
  • Loading branch information
mcspr committed Aug 11, 2021
1 parent b167d61 commit 94f3124
Show file tree
Hide file tree
Showing 3 changed files with 327 additions and 185 deletions.
2 changes: 1 addition & 1 deletion code/espurna/config/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
#endif

#ifndef CFG_VERSION
#define CFG_VERSION 9
#define CFG_VERSION 10
#endif
Loading

0 comments on commit 94f3124

Please sign in to comment.