LingYun IoT Studio NB-IoT research project
guowenxue
2018-11-20 e3bc01f494ddd7cabb8a3ab020fb46e588978744
update iotd_conf.c file, remove printf to log_nrml
1 files modified
6 ■■■■ changed files
src/nbiotd/core/iotd_conf.c 6 ●●●● patch | view | raw | blame | history
src/nbiotd/core/iotd_conf.c
@@ -70,7 +70,7 @@
    data = iniparser_getint(ini, "nbiot:enable", 0);
    nbiot->enable = data? ENABLE : DISABLE;
    printf("Confiugre NB-IoT thread [%s]\n", nbiot->enable ? "enable" : "disable");
    log_nrml("Confiugre NB-IoT thread [%s]\n", nbiot->enable ? "enable" : "disable");
    str = iniparser_getstring(ini, "nbiot:comport", NULL);
    if( NULL!=str && strlen(str) > 0 )
@@ -106,7 +106,7 @@
    data = iniparser_getint(ini, "lora:enable", 0);
    lora->enable = data? ENABLE : DISABLE;
    printf("Confiugre LoRa thread [%s]\n", lora->enable ? "enable" : "disable");
    log_nrml("Confiugre LoRa thread [%s]\n", lora->enable ? "enable" : "disable");
    str = iniparser_getstring(ini, "lora:comport", NULL);
    if( NULL!=str && strlen(str) > 0 )
@@ -142,7 +142,7 @@
    data = iniparser_getint(ini, "mqtt:enable", 0);
    mqtt->enable = data? ENABLE : DISABLE;
    printf("Confiugre MQTT thread [%s]\n", lora->enable ? "enable" : "disable");
    log_nrml("Confiugre MQTT thread [%s]\n", lora->enable ? "enable" : "disable");
    str = iniparser_getstring(ini, "mqtt:hostname", NULL);
    if( !str || strlen(str) <= 0 )