SignalK / SensESP

Universal Signal K sensor framework for the ESP32 platform
https://signalk.org/SensESP/
Apache License 2.0
146 stars 80 forks source link

Lambda transform complex type support #626

Closed mairas closed 1 year ago

mairas commented 1 year ago

Lambda transforms were storing the current output value in the configuration json object. This failed whenever the transform had a complex type that didn't have a standard Json serialization available.

This PR now stops storing the output value in the configuration object. That was a bad idea anyway...

Similar change has been made to Difference and Integrator transforms as well.

EDIT: Also added support for raw JSON SK output. If String objects are passed as input to SKOutputRawJson, the string contents will be inserted as-is as the value field of the respective paths.