 
 void publishVoltageEvent() {
     char eventData[5];
-    uint16_t milliVolts = getAvgBatteryMilliVolts();
+    uint16_t milliVolts = getCentralAvgBatteryMilliVolts();
     sprintf(eventData, "%.1f", milliVolts / 1000.0);
     if (milliVolts < LOW_THRESHOLD) {
         Particle.publish(LOW_EVENT, eventData, 60, PRIVATE);

    flashing = true;
}

uint16_t getAvgBatteryMilliVolts() {
    uint16_t mV = 0;
    for (int i = 0; i < ADC_SAMPLES; i++) {
        mV += readMilliVolts(BATTERY_PIN);
        delay(3);

#define CONNECT_WAIT_MILLIS 10000
#define LOW_THRESHOLD 12000 // milliVolts
#define ADC_SAMPLES 20
#define ADC_DISPERSED 2
#define SLEEP_SECS 3600 // 1 hour
//#define SLEEP_SECS 15

