|
@ -13,6 +13,7 @@ function getPluviometerData(geoLocation, setPluviometerData) { |
|
|
|
|
|
|
|
|
socketObject.onmessage = ({ data }) => { |
|
|
socketObject.onmessage = ({ data }) => { |
|
|
if (data != undefined) { |
|
|
if (data != undefined) { |
|
|
|
|
|
console.log(`\t ====== Getting data from: PLUVIOMETER_FORM => ${moment().format('DD/MM, h:mm:ss:SSS')}`); |
|
|
const dataObject = JSON.parse(data); |
|
|
const dataObject = JSON.parse(data); |
|
|
// console.log(dataObject.responseData);
|
|
|
// console.log(dataObject.responseData);
|
|
|
setPluviometerData(dataObject); |
|
|
setPluviometerData(dataObject); |
|
|