MicroOcpp icon indicating copy to clipboard operation
MicroOcpp copied to clipboard

change confrigration in c file

Open VedantKachhadiya opened this issue 7 months ago • 0 comments

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);

VedantKachhadiya avatar May 30 '25 14:05 VedantKachhadiya