code: func setLastConnected(d models.Device, time int64, notify bool, w http.ResponseWriter, ctx context.Context) error {
  	d.LastConnected = time
  	if err := dbClient.UpdateDevice(d); err != nil {
  		LoggingClient.Error(err.Error())
  		http.Error(w, err.Error(), http.StatusServiceUnavailable)
  		return err
  	}
  
  	if notify {
  		notifyDeviceAssociates(d, http.MethodPut, ctx)
  	}
  
  	return nil
  }
docs: // Update the last connected value for the device