errorMap constant

Map<int, String> const errorMap

Implementation

static const Map<int, String> errorMap = {
  // Application error codes
  errorCommunication: 'Ble communication error.',
  errorSuotaNotFound: 'The remote device does not support SUOTA.',
  errorReadFile: 'Read fileUtils error.',
  errorOnStart: 'Work can\'t upgrade.',
  errorLowPower: 'Low power can\'t upgrade.',
  errorSendImg: 'Send img error.',

  // Value zero must not be used !! Notifications are sent when status changes.
  0x03: 'Forced exit of SPOTA service. See Table 1',
  0x04: 'Patch Data CRC mismatch.',
  0x05: 'Received patch Length not equal to PATCH_LEN characteristic value.',
  0x06: 'External Memory Error. Writing to external device failed.',
  0x07: 'Internal Memory Error. Not enough internal memory space for patch.',
  0x08: 'Invalid memory device.',
  0x09: 'Application error.',

  // SUOTAR application specific error codes
  0x11: 'Invalid image bank',
  0x12: 'Invalid image header',
  0x13: 'Invalid image size',
  0x14: 'Invalid product header',
  0x15: 'Same Image Error',
  0x16: 'Failed to read from external memory device',
};