2 Uint16 to Float conversion in JS - Need help
Hi I am facing problem which I cannot solve.
I am working on Modbus example, I have successfully connected few devices through WSEMS and lua script and currently I am working on another.
Problem is that if I use standard expression like this:
properties.speedCh1 = {key="input_register/1/30515?format=Float", handler="modbus_handler1", basetype="NUMBER"}
It will take 2 Uint16 and converts them into Float in ABCD order. Badly enough, vendor of this device has MSB-LSB in wrong order. I need to do the conversion in CD AB order. Is there a way how to change a Modbus handler to this kind of conversion.
Other way would be to sent every Uint16 separately and do the conversion in Thingworx with Javascript.
Does anyone now how to do that?
Thanks a lot guys and gals.

