Skip to content

Commit 85d7b70

Browse files
committed
stable release #2563
1 parent e2ad668 commit 85d7b70

File tree

3 files changed

+27
-40
lines changed

3 files changed

+27
-40
lines changed

History.txt

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
Version 2.0.xxxx (xxxx 2015)
1+
Version 2.2563 (June 14th 2015)
22
- Implemented: WebServer, native SSL and keep-alive, big thanks to chimit!!!!
33
- Implemented: RFXCom, support for Blinds T9/T10
44
- Implemented: RFXCom, mode6 (Keeloq protocol) support
55
- Implemented: RFXCom pTypeInterfaceControl messages
6+
- Implemented: RFXCom, sTypeTH13/sTypeTH14
67
- Implemented: MQTT support
78
- Implemented: Native 'Ping' (System Alive Checker) hardware
89
- Implemented: KMTronic USB/WEB/RS485 relay hardware
@@ -53,6 +54,7 @@ Version 2.0.xxxx (xxxx 2015)
5354
- Implemented: 'Nest Thermostat' hardware support
5455
- Implemented: Option to Enable/Disable the Custom tab for non-users (admin)
5556
- Implemented: Warning when deleting a Blockly event
57+
- Implemented: Blind status "Stopped" now also displayed on dashboard
5658
- Improved: MySensors support
5759
- Improved: Logitech Harmoney Hub
5860
- Changed: Avoiding possible RTC/NTP clock drifts
@@ -114,16 +116,11 @@ Version 2.0.xxxx (xxxx 2015)
114116
- Fixed: Removed update notification in the login screen
115117
- Fixed: wind gust tooltip
116118
- Fixed: Wind Graph generation could cause a crash
117-
- Implemented: Blind status "Stopped" now also displayed on dashboard
118-
- Implemented: MQTT commands to switch light, switch scene and set user variable
119-
- Implemented: MQTT command to send a Notification
120-
- Implemented: RFXCom, sTypeTH13/sTypeTH14
121-
- Implemented: MQTT command to request device information
122119

123-
Version 2.0.2284 (February 22th 2015)
120+
Version 2.2284 (February 22th 2015)
124121
- Fixed: Firefox, RGBW/Setpoint popup
125122

126-
Version 2.0.2283 (February 21th 2015)
123+
Version 2.2283 (February 21th 2015)
127124
- Implemented: Icon scaling setting per floorplan
128125
- Changed: floorplan code to handle non-landscape images better
129126
- Fixed: Possible crash in Eventsystem (GetCurrentMeasurementStates) where string value was empty
@@ -231,7 +228,7 @@ Version 2.0.2283 (February 21th 2015)
231228
- Implemented: Setpoint Popup
232229
- Implemented: OTGW sending current time/day
233230

234-
Version 2.0.2025 (September 28th 2014)
231+
Version 2.2025 (September 28th 2014)
235232
- Implemented: Fibaro Link data pusher
236233
- Implemented: Splash screen for iPhone5 retina
237234
- Implemented: Navigation toolbar for mobile devices
@@ -343,7 +340,7 @@ Version 2.0.2025 (September 28th 2014)
343340

344341
- Disabled: Internal hardware monitoring, some users have issues with latest changes
345342

346-
Version 1.0.1680 (April 21th 2014)
343+
Version 1.1680 (April 21th 2014)
347344
- Implemented: Support for Forecast.io
348345
- Implemented: Temperature/Weather widgets forecast button if hardware is WU/Forecast.io
349346
- Implemented: Widgets now turn yellow (if no timeout) if the battery level is <= 10 percent
@@ -439,7 +436,7 @@ Version 1.0.1680 (April 21th 2014)
439436
- Fixed: Thermostat SetPoint in Fahrenheit
440437
- Fixed: OpenZWave general type (motion sensor) (thanks to Dnpwwo!)
441438

442-
Version 1.0.1396 (January 18th 2014)
439+
Version 1.1396 (January 18th 2014)
443440
- Implemented: new commandline option to specify www root folder (-wwwroot)
444441
- Implemented: Limitless/AppLamp, option to set Hue/Brightness in the Edit option
445442
- Implemented: Limitless/AppLamp, can now also be used as 'Dimmer'
@@ -510,7 +507,7 @@ Version 1.0.1396 (January 18th 2014)
510507
- Changed: OpenZWave, better handling of COMMAND_CLASS_ALARM and COMMAND_CLASS_SENSOR_ALARM (you might get new devices!)
511508
- Implemented: Add Manual Light/Switch for Meiantech
512509

513-
Version 1.0.1186 (November 16th 2013)
510+
Version 1.1186 (November 16th 2013)
514511
- Fixed: rain week log, some top legend values did not show on the chart
515512
- Implemented: Counterlog, Week chart, legend values
516513
- Implemented: Room Plan editor, dashboard room selector
@@ -565,7 +562,7 @@ Version 1.0.1186 (November 16th 2013)
565562
- Implemented: Clicking on the security-panel icon in the dashboard/switch tab brings you to the actual security panel
566563
- Implemented: Option to manual add a ByronSX doorbell
567564

568-
Version 1.0.1087 (Oktober 16th 2013)
565+
Version 1.1087 (Oktober 16th 2013)
569566
- Implemented: Login page (solves the caching problems)
570567
- Fixed: buttons add sensor/switch buttons now hidden for 'viewer' users
571568
- Implemented: option in settings for basic-auth login type
@@ -633,7 +630,7 @@ Version 1.0.1087 (Oktober 16th 2013)
633630
- Changed: OpenZWave, Sensor_Binary now also uses the Index value (you might get new sensors, and old one can be removed)
634631
- Implemented: Wake-up On Lan support
635632

636-
Version 1.0.940 (July 31th 2013)
633+
Version 1.940 (July 31th 2013)
637634
- Implemented: Lighting2, when a Group On/Off is received, all switched with the same ID will be set to 'On' or 'Off' (internally)
638635
- Fixed: Z-Wave, Wattage scale factor was not initialized
639636
- Implemented: Application settings, mobile view (mobile, or as normal dashboard), iPhone will always be mobile theme
@@ -678,7 +675,7 @@ Version 1.0.940 (July 31th 2013)
678675
- Implemented: Dummy hardware device, that does nothing, but can be used for virtual switches
679676
- Implemented: New Scene/Group functionality
680677

681-
Version 1.0.762 (July 1th 2013)
678+
Version 1.762 (July 1th 2013)
682679
- Changed: Motion Sensors, Off delay now sends 'Off' to Lighting 1/6 devices, and 'No Motion' to X10 motion sensors
683680
- Implemented: On/Off switches, Off Delay option
684681
- Implemented: BMP085 I2C sensor (Rasberry Pi/arm only)
@@ -719,7 +716,7 @@ Version 1.0.762 (July 1th 2013)
719716
- Implemented: Now possible to switch remote hardware
720717
- Changed: Only RAEX blinds will not show a 'stop' button
721718

722-
Version 1.0.666 (May 28th 2013)
719+
Version 1.666 (May 28th 2013)
723720
- Implemented: Settings, Doorbell could be send as 'Group On' or 'On' command
724721
- Fixed: Power Usage Graph, Problem with other devices then P1 Smart Meter
725722
- Implemented: Settings, Option to specify P1 Smart Meter Type (with/without Decimals)
@@ -756,7 +753,7 @@ Version 1.0.666 (May 28th 2013)
756753
- Changed: meta viewport, removed device-width option
757754
- Implemented: Blinds now always have open/close buttons
758755

759-
Version 1.0.607 (May 11th 2013)
756+
Version 1.607 (May 11th 2013)
760757
- Changed: Rego6XX Type setting moved to the hardware settings in the same way as RFXtrx setup is done
761758
- Removed: patch for 'Better day value calculation' for multimeter devices (Like P1 Smart Meter electra), not needed
762759
- Fixed: TE923 (Weather stations) hardware can now be shared
@@ -803,7 +800,7 @@ Version 1.0.607 (May 11th 2013)
803800
- Changed: P1 Smart meter Power, Day/Week graph now displays both meters (day/night)
804801
- Changed: P1 Smart meter Power, graph color swap between tariff 1/2
805802

806-
Version 1.0.484 (April 28th 2013)
803+
Version 1.484 (April 28th 2013)
807804
- Implemented: Raspberry Pi, updating via the web browser (Settings Tab)
808805
- Implemented: Web Gui, sticky Notification (now only used when there is an update for the Raspberry Pi)
809806
- Fixed: ResetSecurityStatus json return status
@@ -837,7 +834,7 @@ Version 1.0.484 (April 28th 2013)
837834
- Fixed: RFXtrx USB mode option in hardware settings
838835
- Implemented: Multi language support for sensors/switch names
839836

840-
Version 1.0.412 (April 1th 2013)
837+
Version 1.412 (April 1th 2013)
841838
- Fixed: Siren icon on dashboard
842839
- Implemented: New layout, dropdown menu, hardware moved to setting dropdown
843840
- Implemented: Chart tooltip now includes weekday

hardware/MySensorsTCP.cpp

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,16 @@ bool MySensorsTCP::StartHardware()
6363
bool MySensorsTCP::StopHardware()
6464
{
6565
m_stoprequested=true;
66+
if (isConnected())
67+
{
68+
try {
69+
disconnect();
70+
}
71+
catch (...)
72+
{
73+
//Don't throw from a Stop command
74+
}
75+
}
6676
try {
6777
if (m_thread)
6878
{
@@ -73,15 +83,6 @@ bool MySensorsTCP::StopHardware()
7383
{
7484
//Don't throw from a Stop command
7585
}
76-
if (isConnected())
77-
{
78-
try {
79-
disconnect();
80-
} catch(...)
81-
{
82-
//Don't throw from a Stop command
83-
}
84-
}
8586

8687
m_bIsStarted=false;
8788
return true;
@@ -149,22 +150,12 @@ void MySensorsTCP::OnError(const boost::system::error_code& error)
149150
_log.Log(LOG_ERROR,"MySensors: Error: %s",error.message().c_str());
150151
}
151152

152-
bool MySensorsTCP::WriteToHardware(const char *pdata, const unsigned char length)
153-
{
154-
if (!mIsConnected)
155-
{
156-
return false;
157-
}
158-
write((const unsigned char*)pdata,length);
159-
return true;
160-
}
161-
162153
void MySensorsTCP::WriteInt(const std::string &sendStr)
163154
{
164155
if (!mIsConnected)
165156
{
166157
return;
167158
}
168-
write(sendStr);
159+
write((const unsigned char*)sendStr.c_str(),sendStr.size());
169160
}
170161

hardware/MySensorsTCP.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ class MySensorsTCP : public MySensorsBase, ASyncTCP
1111
MySensorsTCP(const int ID, const std::string &IPAddress, const unsigned short usIPPort);
1212
~MySensorsTCP(void);
1313
bool isConnected(){ return mIsConnected; };
14-
bool WriteToHardware(const char *pdata, const unsigned char length);
1514
public:
1615
// signals
1716
boost::signals2::signal<void()> sDisconnected;

0 commit comments

Comments
 (0)