docs: function saveDeviceInfo(deviceInfo) {
              debugDC('in saveDeviceInfo');
              var key = getDeviceKey(deviceInfo);
              var connectionTypes = [];
              var newConnectionTypes = getDeviceConnectionTypesData(deviceInfo);
  
              if(scannedData[key]) {
                  // The data has already been added.
                  connectionTypes = scannedData[key].connectionTypes;
              } else {
                  // The data has not been added.  Object needs to be initialized.
                  scannedData[key] = {};
              }
  
              // Append new connection types to the connectionTypes array.
              debugDC('Initial CTS', connectionTypes.length, newConnectionTypes.length);
              connectionTypes = appendDeviceConnectionTypesData(
                  connectionTypes,
                  newConnectionTypes,
                  deviceInfo
              );
              debugDC('Appended CTS', connectionTypes.length);
  
              // Parse the connectionTypes array to populate a few remaining
              // variables.
              scannedData[key].numConnectionTypes = connectionTypes.length;
              scannedData[key].connectionTypeNames = connectionTypes.map(function(ct) {
                  return ct.connectionTypeName;
              });
  
              // Determine what connections are and aren't verified.
              scannedData[key].unverifiedConnectionTypes = [];
              scannedData[key].unverifiedConnectionTypeNames = [];
              scannedData[key].verifiedConnectionTypeNames = [];
              connectionTypes.forEach(function(ct) {
                  var ctn = ct.connectionTypeName;
                  if(ct.isVerified) {
                      scannedData[key].verifiedConnectionTypeNames.push(ctn);
                  } else {
                      scannedData[key].unverifiedConnectionTypes.push(ct);
                      scannedData[key].unverifiedConnectionTypeNames.push(ctn);
                  }
              });
  
              // Save the connectionTypes array.
              scannedData[key].connectionTypes = connectionTypes;
  
              // Save the deviceInfo object to the scannedData object.
              var iKeys = Object.keys(deviceInfo);
              iKeys.forEach(function(iKey) {
                  if(typeof(scannedData[key][iKey]) === 'undefined') {
                      scannedData[key][iKey] = deviceInfo[iKey];
                  }
              });
          }