update json_data and model so more than one address can be revieved from server

This commit is contained in:
Adrian Zuercher
2025-07-30 17:16:50 +02:00
parent 3704edebd5
commit 49dff4f609
6 changed files with 24 additions and 11 deletions

View File

@@ -216,6 +216,7 @@ func (b *Bus) ParsePayload(c *gin.Context) error {
}
func (b *Bus) SetDMXData(channel uint, value uint8) error {
fmt.Println(100, channel, value)
b.DMX.SetValue(channel, value)
b.Send = true
return nil