Loading examples/demo3/src/backend/server/demo3_service.go +5 −4 Original line number Diff line number Diff line Loading @@ -917,14 +917,15 @@ func stateTransferPOST(w http.ResponseWriter, r *http.Request) { return } } appActivityLogs = append(appActivityLogs, "=== Receive device "+targetContextState.Device+" context (state="+counter+") [200]") // Update ams pan// Default device status & state set to 0 trackDevices = append(trackDevices, targetContextState.Device) } terminalDeviceState[targetContextState.Device] = targetContextState.Counter appActivityLogs = append(appActivityLogs, "=== Receive device "+targetContextState.Device+" context (state="+counter+") [200]") w.WriteHeader(http.StatusOK) } Loading Loading
examples/demo3/src/backend/server/demo3_service.go +5 −4 Original line number Diff line number Diff line Loading @@ -917,14 +917,15 @@ func stateTransferPOST(w http.ResponseWriter, r *http.Request) { return } } appActivityLogs = append(appActivityLogs, "=== Receive device "+targetContextState.Device+" context (state="+counter+") [200]") // Update ams pan// Default device status & state set to 0 trackDevices = append(trackDevices, targetContextState.Device) } terminalDeviceState[targetContextState.Device] = targetContextState.Counter appActivityLogs = append(appActivityLogs, "=== Receive device "+targetContextState.Device+" context (state="+counter+") [200]") w.WriteHeader(http.StatusOK) } Loading