Skip to content

Commit

Permalink
v3.9.11
Browse files Browse the repository at this point in the history
3.9.11 20170204
* Fix command I2Cscan
* Fix not allowed spaces in Topic, ButtonTopic and SwitchTopic
* Make all TELEMETRY, STATUS and COMMAND message topics unique (#4)
* Advertise command topic to be used by iobroker (#299)
* Fix butten (non)detection if no GPIO_KEY1 is defined (#13)
* Change WeMo serialnumber from 7 decimal chars to 8 hexadecimal chars
(#18)
* Update web page with Build Date/Time, Emulation and mDNS Discovery and
Advertise information (#21)
  • Loading branch information
arendst committed Feb 4, 2017
1 parent b2b3170 commit 5dc7b63
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 61 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -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```.
Expand Down
Binary file added api/arduino/sonoff.ino.bin
Binary file not shown.
4 changes: 0 additions & 4 deletions sonoff/_releasenotes.ino
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<<<<<<< HEAD
/* 3.9.11 20170204
* Fix command I2Cscan
* Fix not allowed spaces in Topic, ButtonTopic and SwitchTopic
Expand All @@ -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)
*
Expand Down
49 changes: 0 additions & 49 deletions sonoff/sonoff.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down Expand Up @@ -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);
}

Expand All @@ -1915,20 +1910,14 @@ 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)) {
uint8_t djson = 0;
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
}
}

Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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();
}
Expand Down
4 changes: 0 additions & 4 deletions sonoff/xsns_hlw8012.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5dc7b63

Please sign in to comment.