MCPcopy Create free account
hub / github.com/OpenEPaperLink/OpenEPaperLink / prepareConfigFile

Function prepareConfigFile

ESP32_AP-Flasher/src/contentmanager.cpp:3086–3101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3084
3085#ifdef CONTENT_TAGCFG
3086void prepareConfigFile(const uint8_t *dst, const JsonObject &config) {
3087 struct tagsettings tagSettings;
3088 tagSettings.settingsVer = 1;
3089 tagSettings.enableFastBoot = config["fastboot"].as<int>();
3090 tagSettings.enableRFWake = config["rfwake"].as<int>();
3091 tagSettings.enableTagRoaming = config["tagroaming"].as<int>();
3092 tagSettings.enableScanForAPAfterTimeout = config["tagscanontimeout"].as<int>();
3093 tagSettings.enableLowBatSymbol = config["showlowbat"].as<int>();
3094 tagSettings.enableNoRFSymbol = config["shownorf"].as<int>();
3095 tagSettings.customMode = 0;
3096 tagSettings.fastBootCapabilities = 0;
3097 tagSettings.minimumCheckInTime = 1;
3098 tagSettings.fixedChannel = config["fixedchannel"].as<int>();
3099 tagSettings.batLowVoltage = config["lowvoltage"].as<int>();
3100 prepareDataAvail((uint8_t *)&tagSettings, sizeof(tagSettings), 0xA8, dst);
3101}
3102#endif
3103
3104#ifdef CONTENT_TIME_RAWDATA

Callers 1

drawNewFunction · 0.85

Calls 1

prepareDataAvailFunction · 0.85

Tested by

no test coverage detected