diff --git a/README.md b/README.md index 849f23100..8f1b01512 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,7 @@ ## Sonoff-Tasmota Provide ESP8266 based Sonoff by [iTead Studio](https://www.itead.cc/) and ElectroDragon IoT Relay with Serial, Web and MQTT control allowing 'Over the Air' or OTA firmware updates using Arduino IDE. -<<<<<<< HEAD Current version is **3.9.11** - See ```sonoff/_releasenotes.ino``` for change information. -======= -Current version is **3.9.10** - See ```sonoff/_releasenotes.ino``` for change information. ->>>>>>> origin/master - This version provides all (Sonoff) modules in one file and starts up with Sonoff Basic. - Once uploaded select module using the configuration webpage or the commands ```Modules``` and ```Module```. diff --git a/api/arduino/sonoff.ino.bin b/api/arduino/sonoff.ino.bin new file mode 100644 index 000000000..644b8b625 Binary files /dev/null and b/api/arduino/sonoff.ino.bin differ diff --git a/sonoff/_releasenotes.ino b/sonoff/_releasenotes.ino index d14f4d589..e3a59587e 100644 --- a/sonoff/_releasenotes.ino +++ b/sonoff/_releasenotes.ino @@ -1,4 +1,3 @@ -<<<<<<< HEAD /* 3.9.11 20170204 * Fix command I2Cscan * Fix not allowed spaces in Topic, ButtonTopic and SwitchTopic @@ -9,9 +8,6 @@ * Update web page with Build Date/Time, Emulation and mDNS Discovery and Advertise information (#21) * * 3.9.10 20170130 -======= -/* 3.9.10 20170130 ->>>>>>> origin/master * Add WS2812 Color Type selection (RGB or GRB) to user_config.h (#7) * Hue api changes to support HUE App(s) (#8) * diff --git a/sonoff/sonoff.ino b/sonoff/sonoff.ino index 985cac4d4..b6bc9eecf 100644 --- a/sonoff/sonoff.ino +++ b/sonoff/sonoff.ino @@ -10,11 +10,7 @@ * ==================================================== */ -<<<<<<< HEAD #define VERSION 0x03090B00 // 3.9.11 -======= -#define VERSION 0x03090A00 // 3.9.10 ->>>>>>> origin/master enum log_t {LOG_LEVEL_NONE, LOG_LEVEL_ERROR, LOG_LEVEL_INFO, LOG_LEVEL_DEBUG, LOG_LEVEL_DEBUG_MORE, LOG_LEVEL_ALL}; enum week_t {Last, First, Second, Third, Fourth}; @@ -1900,7 +1896,6 @@ void publish_status(uint8_t payload) if ((payload == 0) || (payload == 7)) { snprintf_P(svalue, sizeof(svalue), PSTR("{\"StatusTIM\":{\"UTC\":\"%s\", \"Local\":\"%s\", \"StartDST\":\"%s\", \"EndDST\":\"%s\", \"Timezone\":%d}}"), rtc_time(0).c_str(), rtc_time(1).c_str(), rtc_time(2).c_str(), rtc_time(3).c_str(), sysCfg.timezone); -<<<<<<< HEAD mqtt_publish_topic_P(option, PSTR("STATUS7"), svalue); } @@ -1915,9 +1910,6 @@ void publish_status(uint8_t payload) sysCfg.hlw_pmin, sysCfg.hlw_pmax, sysCfg.hlw_umin, sysCfg.hlw_umax, sysCfg.hlw_imin, sysCfg.hlw_imax); mqtt_publish_topic_P(option, PSTR("STATUS9"), svalue); } -======= - if (payload == 0) mqtt_publish(stopic, svalue); ->>>>>>> origin/master } if ((payload == 0) || (payload == 10)) { @@ -1925,10 +1917,7 @@ void publish_status(uint8_t payload) snprintf_P(svalue, sizeof(svalue), PSTR("{\"StatusSNS\":")); sensors_mqttPresent(svalue, sizeof(svalue), &djson); if (!djson) snprintf_P(svalue, sizeof(svalue), PSTR("%s}"), svalue); -<<<<<<< HEAD mqtt_publish_topic_P(option, PSTR("STATUS10"), svalue); -======= ->>>>>>> origin/master } } @@ -1966,40 +1955,6 @@ void sensors_mqttPresent(char* svalue, uint16_t ssvalue, uint8_t* djson) snprintf_P(svalue, ssvalue, PSTR("%s}"), svalue); } -void sensors_mqttPresent(char* svalue, uint16_t ssvalue, uint8_t* djson) -{ - char stime[21]; - - snprintf_P(stime, sizeof(stime), PSTR("%04d-%02d-%02dT%02d:%02d:%02d"), - rtcTime.Year, rtcTime.Month, rtcTime.Day, rtcTime.Hour, rtcTime.Minute, rtcTime.Second); - snprintf_P(svalue, ssvalue, PSTR("%s{\"Time\":\"%s\""), svalue, stime); - if (pin[GPIO_DSB] < 99) { -#ifdef USE_DS18B20 - dsb_mqttPresent(svalue, ssvalue, djson); -#endif // USE_DS18B20 -#ifdef USE_DS18x20 - ds18x20_mqttPresent(svalue, ssvalue, djson); -#endif // USE_DS18x20 - } -#if defined(USE_DHT) || defined(USE_DHT2) - if (dht_type) dht_mqttPresent(svalue, ssvalue, djson); -#endif // USE_DHT/2 -#ifdef USE_I2C - if (i2c_flg) { -#ifdef USE_HTU - htu_mqttPresent(svalue, ssvalue, djson); -#endif // USE_HTU -#ifdef USE_BMP - bmp_mqttPresent(svalue, ssvalue, djson); -#endif // USE_BMP -#ifdef USE_BH1750 - bh1750_mqttPresent(svalue, ssvalue, djson); -#endif // USE_BH1750 - } -#endif // USE_I2C - snprintf_P(svalue, ssvalue, PSTR("%s}"), svalue); -} - /********************************************************************************************/ void every_second_cb() @@ -2097,11 +2052,7 @@ void every_second() uint8_t djson = 0; svalue[0] = '\0'; sensors_mqttPresent(svalue, sizeof(svalue), &djson); -<<<<<<< HEAD if (djson) mqtt_publish_topic_P(1, PSTR("SENSOR"), svalue); -======= - if (djson) mqtt_publish(stopic, svalue); ->>>>>>> origin/master if (hlw_flg) hlw_mqttPresent(); } diff --git a/sonoff/xsns_hlw8012.ino b/sonoff/xsns_hlw8012.ino index 04943d9fe..097969e7a 100644 --- a/sonoff/xsns_hlw8012.ino +++ b/sonoff/xsns_hlw8012.ino @@ -518,11 +518,7 @@ void hlw_commands(char *svalue, uint16_t ssvalue) * Presentation \*********************************************************************************************/ -<<<<<<< HEAD void hlw_mqttStat(byte option, char* svalue, uint16_t ssvalue) -======= -void hlw_mqttPresent() ->>>>>>> origin/master { char stemp0[10], stemp1[10], stemp2[10], stemp3[10], speriod[20]; float ped, pi, pc;