Skip to content

change confrigration in c file #414

@VedantKachhadiya

Description

@VedantKachhadiya

I want to apply these configuration changes in my main.c file. How can I convert and use the following C++ configuration declarations using the C API?

MicroOcpp::declareConfiguration<const char*>(
    "MeterValuesSampledData", 
    "Power.Active.Import,Energy.Active.Import.Register,Current.Import,Current.Offered,Voltage,Temperature,SoC");

MicroOcpp::declareConfiguration<bool>(
    MO_CONFIG_EXT_PREFIX "PreBootTransactions", 
    true);

MicroOcpp::declareConfiguration<bool>(
    MO_CONFIG_EXT_PREFIX "SilentOfflineTransactions", 
    true);

MicroOcpp::declareConfiguration<int>(
    "MeterValueSampleInterval", 
    5);

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