Micke Prag
|
f7336b34f9
|
Rewrite our callback dispatcher. Instead of dynamically create new
threads for each callback they are now precreated when they are
registered. Each callback will now be called using the same thread each
time.
|
2014-01-08 13:55:02 +01:00 |
|
Stefan Persson
|
475fdb9d59
|
Code cleanup, removed debug messages
|
2012-12-06 16:12:42 +01:00 |
|
Stefan Persson
|
8d90a4e14a
|
Added whitespaces to comments according to Google style guidelines "whitespace/comments"
|
2012-12-05 13:01:46 +01:00 |
|
Stefan Persson
|
69c67e3c09
|
Fixed placement of curly braces according to Google style guidelines "whitespace/braces"
|
2012-12-05 11:36:03 +01:00 |
|
Micke Prag
|
3441b9cc45
|
Missing username in TODO according to Google style guidelines "readability/todo"
|
2012-12-04 17:25:17 +01:00 |
|
Stefan Persson
|
9d39fe8d47
|
Merged with Windows_service_fixes
|
2012-12-04 15:01:46 +01:00 |
|
Stefan Persson
|
df6bd27883
|
More logging for TelldusService debug, ticket #266, 266-1.
|
2012-12-04 11:34:06 +01:00 |
|
Stefan Persson
|
0d8bf77a45
|
Only a lot of debug printouts, but this version is working for SwitchKing at least
|
2012-09-03 16:59:09 +02:00 |
|
Micke Prag
|
6688f44084
|
Missing username in TODO according to Google style guidelines "readability/todo"
|
2012-06-19 12:30:52 +02:00 |
|
Micke Prag
|
6666dc0294
|
Do not use namespace using-directives according to Google style guidelines "build/namespaces"
|
2012-06-19 12:30:51 +02:00 |
|
Micke Prag
|
dc357ddeca
|
Remove extra blank lines according to Google style guidelines "whitespace/blank_line"
|
2012-06-19 12:30:51 +02:00 |
|
Micke Prag
|
75f21588e5
|
Should have a space between // and comment "whitespace/comments"
|
2012-06-19 12:30:50 +02:00 |
|
Micke Prag
|
e1608f94a8
|
{ should almost always be at the end of the previous line, according to Google style guidelines "whitespace/braces"
|
2012-06-19 12:30:50 +02:00 |
|
Micke Prag
|
8d0228ced2
|
Add copyright message according to Google style guidelines "legal/copyright"
|
2012-06-19 12:30:50 +02:00 |
|
Micke Prag
|
5b5be387cd
|
Include the directory when naming .h files. According to Google style guideline "build/include".
|
2012-06-19 12:30:49 +02:00 |
|
Micke Prag
|
1e6767fa65
|
Return an appropriate error code instead of true/false in tdUnregisterCallback(), closes #200
|
2012-04-13 11:22:47 +02:00 |
|
Micke Prag
|
9500c4c898
|
Convert dos endings to unix in telldus-core, see #160
|
2012-02-27 17:37:52 +01:00 |
|
Micke Prag
|
246b4273ce
|
Add callback TDControllerEvent
|
2012-02-27 15:19:04 +01:00 |
|
Micke Prag
|
148fd52c76
|
Create one generic callback dispatcher that can handle all our
callbacks.
This minimize code duplication and allows us much easier to add and
maintain callbacks.
|
2012-02-24 16:47:30 +01:00 |
|
Micke Prag
|
9f8ceec805
|
Merge remote branch 'origin/master' into t108
Conflicts:
telldus-core/client/Client.cpp
|
2012-02-23 16:59:50 +01:00 |
|
Stefan Persson
|
c049b97a64
|
Dispatching of events in own thread, to somewhat counter problems with long running events.
|
2012-02-23 15:48:39 +01:00 |
|
Micke Prag
|
6d47870856
|
Return 'TellStick not found' when no controller is connected instead of 'No device found'
|
2012-02-23 15:21:18 +01:00 |
|
Micke Prag
|
20840d5d8b
|
Initialize private variable
|
2012-02-23 15:20:28 +01:00 |
|
Micke Prag
|
2b7f02bbb4
|
Add public function tdController() to telldus-core. See #108
|
2012-02-23 10:07:16 +01:00 |
|
Torbjörn Lönnemark
|
f34e1ad53f
|
Fix Client::close to allow for reinitialization
Make sure Client::close cleans up properly to allow for reinitialization
of the Client class.
Closes #188
|
2012-02-21 15:15:23 +01:00 |
|
Micke Prag
|
49b5292415
|
Remove debug code
|
2012-01-18 11:36:49 +01:00 |
|
Micke Prag
|
46d70ad451
|
Return TELLSTICK_ERROR_COMMUNICATION_SERVICE if we timeout when communicating with the service instead of returning success. This closes #152
|
2012-01-12 14:43:58 +01:00 |
|
Stefan Persson
|
b84e8b3806
|
Added TELLSTICK_ERROR_BROKEN_PIPE to distinguate between when communication with TellStick fails due to timeout or actual error.
|
2012-01-12 11:39:04 +01:00 |
|
Micke Prag
|
b0f092e98d
|
Lower the read timeout for events in the client. This should be reset
again when #157 is fixed.
See #157.
|
2012-01-12 10:30:23 +01:00 |
|
Stefan Persson
|
d7cce515ff
|
Added setting for 'Not wait for confirmation from TellStick', see ticket 98, in Linux
|
2012-01-11 14:53:46 +01:00 |
|
Stefan Persson
|
86554b26ac
|
Code cleanup
|
2011-12-28 11:14:59 +01:00 |
|
Stefan Persson
|
24586433d9
|
Windows service, 2.1.0a and new changes for possible new version.
|
2011-11-04 14:32:22 +01:00 |
|
Micke Prag
|
9535ecd0ae
|
Merge branch t102, this closes #102
|
2011-10-06 14:12:55 +00:00 |
|
Micke Prag
|
37ef792024
|
Fixed memory leak
|
2011-05-19 12:40:22 +00:00 |
|
Micke Prag
|
8eaaf6f4a6
|
Added functions tdSensor() and tdSensorValue() to the client library. The function tdSensor() caches the result and only returns one sensor per call
|
2011-05-13 12:51:13 +00:00 |
|
Micke Prag
|
7532d315d8
|
Added new callback TDSensorEvent
|
2011-05-12 15:32:11 +00:00 |
|
Micke Prag
|
38f4ab6f53
|
Increased timeout from 1s to 5s between client library and service
|
2011-03-07 09:57:44 +00:00 |
|
Micke Prag
|
0345f70616
|
Added mutexes to the callbacks to allow unregistering and callbacks at the same time
|
2011-03-02 09:09:32 +00:00 |
|
Micke Prag
|
228b02b680
|
Store a pointer to the callback-information instead of copy it
|
2011-03-01 18:14:06 +00:00 |
|
Micke Prag
|
97cc7ae376
|
Client::getBoolFromService() should compare to TELLSTICK_SUCCESS instead of 1
|
2011-02-28 10:48:20 +00:00 |
|
Micke Prag
|
0163ba4d44
|
Removed our templated CallbackDispatcher, is only caused problems.
|
2010-11-02 17:08:55 +00:00 |
|
Micke Prag
|
7f7d9445a7
|
Use CallbackDispatcher for DeviceChange- and RawDevice events also
|
2010-11-02 14:48:13 +00:00 |
|
Micke Prag
|
348de30928
|
Welcome new class CallbackDispatcher
|
2010-11-02 14:30:30 +00:00 |
|
Stefan Persson
|
027c04e819
|
Fix for client messages that are received together
|
2010-10-29 08:18:13 +00:00 |
|
Stefan Persson
|
6c881923f4
|
Compile fixes for linux
|
2010-10-25 15:00:40 +00:00 |
|
Stefan Persson
|
20804d441c
|
New wait-for-object-fix when timeout is used in Socket_win
|
2010-10-25 08:14:28 +00:00 |
|
Micke Prag
|
3451af5170
|
Return the error TELLSTICK_ERROR_CONNECTING_SERVICE if the client cannot connect to the server
|
2010-10-24 16:50:35 +00:00 |
|
Micke Prag
|
4fe00e4b4e
|
Converted usage of Message::wideToString() to TelldusCore::wideToString()
|
2010-10-24 16:08:36 +00:00 |
|
Stefan Persson
|
88c65b2657
|
Changed one device lock which was ignored the last time.
|
2010-10-22 13:21:05 +00:00 |
|
Stefan Persson
|
8da5bf1ae5
|
Timeout not infinite for client reads after sending
|
2010-10-21 14:52:24 +00:00 |
|