Skip to content
Snippets Groups Projects
Commit 9773f01a authored by Sandro Weber's avatar Sandro Weber
Browse files

Merge branch 'development' into NRRPLT-8384-mqtt

parents efe4bf32 8de08962
No related branches found
No related tags found
No related merge requests found
# README #
NRP web-frontend 2.0 using React
NRP web-frontend 4.0 using React
### Prerequisites
- "nvm install 14"
### Install
- "nvm use 14"
- "npm install"
### Commands
- "nvm use 14"
- "npm start" (dev server)
- "npm run build" (build for production)
\ No newline at end of file
......@@ -7548,6 +7548,11 @@
"slash": "^3.0.0"
}
},
"google-protobuf": {
"version": "3.21.0",
"resolved": "https://registry.npmjs.org/google-protobuf/-/google-protobuf-3.21.0.tgz",
"integrity": "sha512-byR7MBTK4tZ5PZEb+u5ZTzpt4SfrTxv5682MjPlHN16XeqgZE2/8HOIWeiXe8JKnT9OVbtBGhbq8mtvkK8cd5g=="
},
"graceful-fs": {
"version": "4.2.6",
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.6.tgz",
......@@ -11634,9 +11639,9 @@
}
},
"nrp-jsproto": {
"version": "1.1.1-alpha.10",
"resolved": "https://registry.npmjs.org/nrp-jsproto/-/nrp-jsproto-1.1.1-alpha.10.tgz",
"integrity": "sha512-KFe2AQuhtx4wD76PIzxlhKFXtWYeUtyqSkONA8nYvIV9HfG67q09Qcnzhl745jZHZHZMC03xj9QVEr0x5so8Cg=="
"version": "1.1.1-alpha.20",
"resolved": "https://registry.npmjs.org/nrp-jsproto/-/nrp-jsproto-1.1.1-alpha.20.tgz",
"integrity": "sha512-n39H3PBdhA+ojWIRe43ZcSJEZeogGZ91o5beHKrLdbbjNGcduOAzUS75AYE2hQ0YbOWtGwNVDQL9LGHK0LZugQ=="
},
"nth-check": {
"version": "1.0.2",
......
......@@ -52,20 +52,20 @@ export default class MqttClientService extends EventEmitter {
console.info('MQTT message: [topic, payload, packet]');
console.info([topic, payload, packet]);
try {
/*try {
if (topic.endsWith('/type')) {
let msg = String(payload);
console.info('"' + topic + '" message format = ' + msg);
}
else {
let msg = proto.Engine.DataPackMessage.decode(payload);
let msg = DataPackMessage.deserializeBinary(payload);
console.info('DataPackMessage');
console.info(msg);
}
}
catch (error) {
console.error(error);
}
}*/
}
subscribeToTopic(topic, callback=Function()){
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment