Skip to content

Not able to read timestamps from TimestampedFixedValue #44

Open
@RoL0NL

Description

@RoL0NL

Hi, thanks for this awesome library! Works great!

I have an issue accessing the timestamp corresponding to the gas_delivered value (TimestampedFixedValue type). The readme states that there is an additional timestamp() function which would return a timestamp string. The compiler however throws an error:

DSMR:376:65: error: no match for call to '(String) ()'
       mqttGasStruct["timestamp"] = data.gas_delivered.timestamp();
exit status 1
no match for call to '(String) ()'

I am not that familiar with the C++ template structures used, but I cannot find any function named timestamp() in fields.h. I can directly access gas_delivered.timestamp (the variable, not the function), but that is not how it is documented and it seems that this value is not updated after receiving new telegrams.

Am I doing something wrong? Unfortunately, the examples do not cover these TimestampedFixedValue timestamps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions