Turn Message into a record type
This commit is contained in:
parent
ab6e123efc
commit
10e26a4866
4 changed files with 10 additions and 14 deletions
|
|
@ -22,4 +22,4 @@ let generateZigbeeCommand friendlyName targetColor targetBrightness =
|
|||
let topic = $"zigbee2mqtt/{friendlyName}/set"
|
||||
let payload = commandObj.ToJsonString()
|
||||
|
||||
Message(topic, payload)
|
||||
{ Topic = topic; Payload = payload }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue