function storeData(){
        if (currentMaxRawData==0){
            currentMaxRawData=G;
        }
        batchArray.push(currentMaxRawData.toFixed(2));
        currentMaxRawData=0;
        if (batchArray.length>=batchSize){
        sendBatch();
        }
    }
//saves currentMaxRawData to array, checks for reach of batchSize. If reached, sendBatch() is triggered
saves currentMaxRawData to array, checks for reach of batchSize. If reached, sendBatch() is triggered
saves currentMaxRawData to array checks for reach of batchSize . If reached sendBatch () is triggered
function storeData(){
        if (currentMaxRawData==0){
            currentMaxRawData=G;
        }
        batchArray.push(currentMaxRawData.toFixed(2));
        currentMaxRawData=0;
        if (batchArray.length>=batchSize){
        sendBatch();
        }
    }
function storeData ( ) { if ( currentMaxRawData == 0 ) { currentMaxRawData = G ; } batchArray . push ( currentMaxRawData . toFixed ( 2 ) ) ; currentMaxRawData = 0 ; if ( batchArray . length >= batchSize ) { sendBatch ( ) ; } }
saves currentMaxRawData to array, checks for reach of batchSize.
saves currentMaxRawData to array checks for reach of batchSize .