@ -1,4 +1,4 @@
const dataClient =
"ws://wpd.brazilsouth.cloudapp.azure.com:9090/hot/data?";
"wss://wpd.brazilsouth.cloudapp.azure.com/wss/hot/data?";
export default dataClient;
const webSocketClient =
"ws://wpd.brazilsouth.cloudapp.azure.com:9090/hot/formsanswers?";
"wss://wpd.brazilsouth.cloudapp.azure.com/wss/hot/formsanswers?";
export default webSocketClient;
@ -44,6 +44,8 @@ const AssembleIngestionPluviometer = async ({
date,
time,
}) => {
console.log(`----> Sending data: PLUVIOMETER_FORM = ${pluviometer} => ${moment().format('DD/MM, h:mm:ss:SSS')}`)
const pluviometerObject = {
responseData: {
array_to_json: [
@ -13,6 +13,7 @@ function getPluviometerData(geoLocation, setPluviometerData) {
socketObject.onmessage = ({ data }) => {
if (data != undefined) {
console.log(`\t ====== Getting data from: PLUVIOMETER_FORM => ${moment().format('DD/MM, h:mm:ss:SSS')}`);
const dataObject = JSON.parse(data);
// console.log(dataObject.responseData);
setPluviometerData(dataObject);