Signal KSK
Signal K16mo ago
1 reply
FlyingK

FlyingK - I am struggling with the ObservableVa...

I am struggling with the ObservableValue concept. I managed to get the VEDirect Input Parser up and running and I see output logged to Serial. I need to get the data not only to SignalK but also use it "locally" on the esp32 with an epaper display. I tried to create a custom FloatConsumer to log to Serial for testing and connect the consumer but I don't see anything logged.

class VoltageConsumer : public FloatConsumer {
    public:
    void set(const float new_value) {
        debugD("Updating voltage to %f!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!", new_value);
    }
};

and here is the call in the setup function: vedi->parser.data.channel_1_battery_voltage.connect_to(new VoltageConsumer);
Any idea what's wrong or what I am missing?
Was this page helpful?