 float current_mA_B = 0;
 float loadvoltage_B = 0;
 
+//with xbee on
+float shuntvoltage_C = 0;
+float busvoltage_C = 0;
+float current_mA_C = 0;
+float loadvoltage_C = 0;
+
 void setup () {
 	//clock_prescale_set(clock_div_4);
 
-	Serial.begin(ws_baud);
-	Serial.println("Hello!");
+	Serial.begin(57600);
+	Serial.println("Charger Example");
 
 	// Initialize the INA219.
 	// By default the initialization will use the largest range (32V, 2A).  However

	//ina219.setCalibration_16V_400mA();

	Serial.println("Measuring voltage and current with INA219 ...");
}

void loop () {
	float shuntvoltage_A = ina219_A.getShuntVoltage_mV();
	float busvoltage_A = ina219_A.getBusVoltage_V();
	float current_mA_A = ina219_A.getCurrent_mA();

	float shuntvoltage_B = ina219_B.getShuntVoltage_mV();
	float busvoltage_B = ina219_B.getBusVoltage_V();
	float current_mA_B = ina219_B.getCurrent_mA();

//	// wake up the XBee
//	pinMode(XBee_wake, OUTPUT);
//	digitalWrite(XBee_wake, LOW);
//	delay(ws_short_delay);

	Serial.print("$LOAD:");
	Serial.print(counter);
	Serial.print(":BusVolt:");
	Serial.print(busvoltage_A);
	Serial.println("V*");

	Serial.print("$LOAD:");
	Serial.print(counter);
	Serial.print(":Current:");
	Serial.print(current_mA_A);
	Serial.println("mA*");

	float shuntvoltage_C = ina219_A.getShuntVoltage_mV();
	float busvoltage_C = ina219_A.getBusVoltage_V();
	float current_mA_C = ina219_A.getCurrent_mA();

	Serial.print("$CHARGER:");
	Serial.print(counter);
	Serial.print(":BusVolt:");
	Serial.print(busvoltage_B);
	Serial.println("V*");

	Serial.print("$CHARGER:");
	Serial.print(counter);
	Serial.print(":Current:");
	Serial.print(current_mA_B);
	Serial.println("mA*");

	Serial.print("$LOADXB:");
	Serial.print(counter);
	Serial.print(":BusVolt:");
	Serial.print(busvoltage_C);
	Serial.println("V*");

	Serial.print("$LOADXB:");
	Serial.print(counter);
	Serial.print(":Current:");
	Serial.print(current_mA_C);
	Serial.println("mA*");
	Serial.println("");

		counter++;
		if (counter == 100)

			counter = 10;
		}

	}

	delay(100);
}
