function handleNotifications(data) {
    myValue = data;
    if (myValue != undefined) {
        if (myValue.indexOf("|") > 0) {
            myValue = myValue.split("|");
            let temp = myValue[0];
            let humidity = myValue[1];
            setTempHumVals(temp + "°C " + humidity + "%");
        } else {
            myValue = myValue.split(":");
            if (myValue[0] >= 0) {
                setGaugeValue(myValue[0]);
                setLastRead();
                if (myValue[1] == 1) {
                    isSummer();
                } else {
                    isWinter();
                }
            } else {
                console.log("PING");
            }
        }
    } else {
        console.log("Data is undefined");
    }
}
// A function that will be called once got characteristics
A function that will be called once got characteristics
A function that will be called once got characteristics
function handleNotifications(data) {
    myValue = data;
    if (myValue != undefined) {
        if (myValue.indexOf("|") > 0) {
            myValue = myValue.split("|");
            let temp = myValue[0];
            let humidity = myValue[1];
            setTempHumVals(temp + "°C " + humidity + "%");
        } else {
            myValue = myValue.split(":");
            if (myValue[0] >= 0) {
                setGaugeValue(myValue[0]);
                setLastRead();
                if (myValue[1] == 1) {
                    isSummer();
                } else {
                    isWinter();
                }
            } else {
                console.log("PING");
            }
        }
    } else {
        console.log("Data is undefined");
    }
}
function handleNotifications ( data ) { myValue = data ; if ( myValue != undefined ) { if ( myValue . indexOf ( "|" ) > 0 ) { myValue = myValue . split ( "|" ) ; let temp = myValue [ 0 ] ; let humidity = myValue [ 1 ] ; setTempHumVals ( temp + "°C "  umidity  %") ; } else { myValue = myValue . split ( ":" ) ; if ( myValue [ 0 ] >= 0 ) { setGaugeValue ( myValue [ 0 ] ) ; setLastRead ( ) ; if ( myValue [ 1 ] == 1 ) { isSummer ( ) ; } else { isWinter ( ) ; } } else { console . log ( "PING" ) ; } } } else { console . log ( "Data is undefined" ) ; } }
A function that will be called once got characteristics
A function that will be called once got characteristics