Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void handleXML(){
- XML="<?xml version='1.0'?>";
- XML+="<xml>";
- XML+="<pumpstate>";
- XML+= pumpstate;
- XML+="</pumpstate>";
- XML+="<sensor0>";
- XML+= sensor[0];
- XML+="</sensor0>";
- XML+="<sensor1>";
- XML+= sensor[1];
- XML+="</sensor1>";
- XML+="<sensor2>";
- XML+= sensor[2];
- XML+="</sensor2>";
- XML+="<sensor3>";
- XML+= sensor[3];
- XML+="</sensor3>";
- XML+="<sensor4>";
- XML+= sensor[4];
- XML+="</sensor4>";
- XML+="<sensor5>";
- XML+= sensor[5];
- XML+="</sensor5>";
- XML+="<sensor6>";
- XML+= sensor[6];
- XML+="</sensor6>";
- XML+="<sensor7>";
- XML+= sensor[7];
- XML+="</sensor7>";
- XML+="<sensor8>";
- XML+= sensor[8];
- XML+="</sensor8>";
- XML+="<sensor9>";
- XML+= sensor[9];
- XML+="</sensor9>";
- XML+="<sensor10>";
- XML+= sensor[10];
- XML+="</sensor10>";
- XML+="<sensor11>";
- XML+= sensor[11];
- XML+="</sensor11>";
- XML+="<sensor12>";
- XML+= sensor[12];
- XML+="</sensor12>";
- XML+="<sensor13>";
- XML+= sensor[13];
- XML+="</sensor13>";
- XML+="<sensor14>";
- XML+= sensor[14];
- XML+="</sensor14>";
- XML+="<sensor15>";
- XML+= sensor[15];
- XML+="</sensor15>";
- XML+="<solenoidState0>";
- XML+= solenoidState0;
- XML+="</solenoidState0>";
- XML+="<solenoidState1>";
- XML+= solenoidState1;
- XML+="</solenoidState1>";
- XML+="<solenoidState2>";
- XML+= solenoidState2;
- XML+="</solenoidState2>";
- XML+="<solenoidState3>";
- XML+= solenoidState3;
- XML+="</solenoidState3>";
- XML+="<solenoidState4>";
- XML+= solenoidState4;
- XML+="</solenoidState4>";
- XML+="<solenoidState5>";
- XML+= solenoidState5;
- XML+="</solenoidState5>";
- XML+="<solenoidState6>";
- XML+= solenoidState6;
- XML+="</solenoidState6>";
- XML+="<solenoidState7>";
- XML+= solenoidState7;
- XML+="</solenoidState7>";
- XML+="<solenoidState8>";
- XML+= solenoidState8;
- XML+="</solenoidState8>";
- XML+="<solenoidState9>";
- XML+= solenoidState9;
- XML+="</solenoidState9>";
- XML+="<solenoidState10>";
- XML+= solenoidState10;
- XML+="</solenoidState10>";
- XML+="<solenoidState11>";
- XML+= solenoidState11;
- XML+="</solenoidState11>";
- XML+="<solenoidState12>";
- XML+= solenoidState12;
- XML+="</solenoidState12>";
- XML+="<solenoidState13>";
- XML+= solenoidState13;
- XML+="</solenoidState13>";
- XML+="<solenoidState14>";
- XML+= solenoidState14;
- XML+="</solenoidState14>";
- XML+="<solenoidState15>";
- XML+= solenoidState15;
- XML+="</solenoidState15>";
- XML+="</xml>";
- server.send(200,"text/xml",XML);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement