add status server for driver state
All checks were successful
Build ArtNet Driver / build (amd64, .exe, windows) (push) Successful in 3m49s
Build ArtNet Driver / build (amd64, , linux) (push) Successful in 3m58s
Build ArtNet Driver / build (arm, 6, , linux) (push) Successful in 3m30s
Build ArtNet Driver / build (arm64, , linux) (push) Successful in 3m31s
All checks were successful
Build ArtNet Driver / build (amd64, .exe, windows) (push) Successful in 3m49s
Build ArtNet Driver / build (amd64, , linux) (push) Successful in 3m58s
Build ArtNet Driver / build (arm, 6, , linux) (push) Successful in 3m30s
Build ArtNet Driver / build (arm64, , linux) (push) Successful in 3m31s
This commit is contained in:
@@ -110,6 +110,7 @@ func (d *ArtNetDriver) Start(c *gin.Context) {
|
||||
}
|
||||
|
||||
d.Buses[busPayload.Name].Start(d.Log)
|
||||
d.statusServer.Publish(fmt.Sprintf("status/%s/%s", d.Name, busPayload.Name), "Running")
|
||||
|
||||
r := json_dataModels.NewResponse()
|
||||
r.SetMessage(fmt.Sprintf("bus '%s' running", busPayload.Name))
|
||||
@@ -132,6 +133,7 @@ func (d *ArtNetDriver) Stop(c *gin.Context) {
|
||||
}
|
||||
|
||||
d.Buses[busPayload.Name].Stop()
|
||||
d.statusServer.Publish(fmt.Sprintf("status/%s/%s", d.Name, busPayload.Name), "Stopped")
|
||||
|
||||
r := json_dataModels.NewResponse()
|
||||
r.SetMessage(fmt.Sprintf("bus '%s' stopped", busPayload.Name))
|
||||
|
Reference in New Issue
Block a user