2021-11-11, 09:32 PM
Boat is on the dry so started to use the http://localhost:3000/admin/#/serverConf...atafiddler to further investigate.
I added logging to stringMSG.js
I found exports.encodeMXPGN code mentioned above is not used.
Only exports.parseMXPGN is being used.
Also I tried to reverse the HEX words manualy so tested:
$MXPGN,01F211,68BB,004EA80000044CFF
Then I get at least some valid data:
this looks better however values not yet correct.
==> which piece of code should reverse the HEX words?
==> where are the values calculated
to be continued.
Tips are welcome
I added logging to stringMSG.js
I found exports.encodeMXPGN code mentioned above is not used.
Only exports.parseMXPGN is being used.
Also I tried to reverse the HEX words manualy so tested:
$MXPGN,01F211,68BB,004EA80000044CFF
Then I get at least some valid data:
Code:
"values": [
{
"path": "tanks.fuel.0.currentLevel",
"value": 1.7234399999999999
},
{
"path": "tanks.fuel.0.capacity",
"value": 127533.056
}
]
this looks better however values not yet correct.
==> which piece of code should reverse the HEX words?
==> where are the values calculated
to be continued.
Tips are welcome