code: func updateDeviceLastReportedConnected(device string) {
  	// Config set to skip update last reported
  	if !Configuration.Writable.DeviceUpdateLastConnected {
  		LoggingClient.Debug("Skipping update of device connected/reported times for:  " + device)
  		return
  	}
  
  	d, err := mdc.CheckForDevice(device, context.Background())
  	if err != nil {
  		LoggingClient.Error("Error getting device " + device + ": " + err.Error())
  		return
  	}
  
  	// Couldn't find device
  	if len(d.Name) == 0 {
  		LoggingClient.Error("Error updating device connected/reported times.  Unknown device with identifier of:  " + device)
  		return
  	}
  
  	t := db.MakeTimestamp()
  	// Found device, now update lastReported
  	//Use of context.Background because this function is invoked asynchronously from a channel
  	err = mdc.UpdateLastConnectedByName(d.Name, t, context.Background())
  	if err != nil {
  		LoggingClient.Error("Problems updating last connected value for device: " + d.Name)
  		return
  	}
  	err = mdc.UpdateLastReportedByName(d.Name, t, context.Background())
  	if err != nil {
  		LoggingClient.Error("Problems updating last reported value for device: " + d.Name)
  	}
  	return
  }
docs: // Update when the device was last reported connected