Micke Prag
fd8fdfcacd
Remove variables never used
2012-11-08 10:13:59 +01:00
Micke Prag
c3bcd64246
Queue all device commands and execute them from the main thread.
...
By queueing all commands the client library will return immediately and all
executed commands will not block any more. This is benificial for applications
that calls the api using the same thread as the ui thread. For instance groups
could before take several seconds to execute and the application would freeze in
the meantime. If the time to execute was longer than the timeout between
telldus-core and telldusd other nasty stuff like resending the same group up to
20 times could happen.
This change fixes all that with the drawback that we do not really know if the
command was succuessful when returning. We do the best to check all
prerequisites to determine it the call will be successful. Errors like
TELLSTICK_ERROR_COMMUNICATION and TELLSTICK_ERROR_BROKEN_PIPE will not be
reported back to the client. We can still log them though.
This fixes #260 . Please reopen if the issue still exists.
2012-11-02 19:52:07 +01:00
Micke Prag
2368b6e564
Add function Device::isMethodSupported()
...
This function both checks if a method is supported and also "upmask" a method if
it was masked previously.
2012-11-02 16:18:27 +01:00
Micke Prag
35dbc0a980
Report humidity for Oregon 0x1A2D. This closes #221 .
2012-11-02 15:03:57 +01:00
Micke Prag
aa16302e1e
Add function ControllerManager::count()
...
This function also rescans the controllers to add new ones if none is
connected.
2012-11-02 13:34:34 +01:00
Micke Prag
d0b1dbba0e
Do not unlock the mutex manually since we are using a MutexLocker.
...
Unlocking a mutex twice seems to cause deadlocks on OS X if we stress the
library. Windows seems unaffected. See #260 .
2012-11-02 13:16:34 +01:00
Micke Prag
9d5af14609
Fix some compiler warnings
2012-10-30 15:58:34 +01:00
Micke Prag
4d1fdd777f
Comparison of unsigned expression < 0 is always false
2012-10-30 15:58:01 +01:00
Micke Prag
bc777e04ca
Add cppunit on OS X as well
2012-09-26 16:43:19 +02:00
Micke Prag
ccc027b381
Update stdlibc_workaround.cpp to our style guidelines
2012-09-26 16:39:05 +02:00
Micke Prag
609f7581ea
Update main_mac.cpp to our style guidelines
2012-09-26 16:32:36 +02:00
Micke Prag
c522173296
Update ControllerListener_mac.cpp to our style guidelines
2012-09-26 16:31:27 +02:00
Micke Prag
bc22754f8c
Update SettingsCoreFoundationPreferences.cpp to our style guidelines
2012-09-26 16:24:41 +02:00
Micke Prag
f5756e3f93
Update TellStick_ftd2xx.cpp to our style guidelines
2012-09-26 16:16:44 +02:00
Micke Prag
22e8549e7e
Follow better the 'Apple Create Rule' for our variables. This fixes a memory leak. Closes #240
2012-09-26 15:05:03 +02:00
Stefan Persson
7ee8407922
Leave read loop on broken pipe
2012-09-03 17:00:17 +02: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
4ff3cfd56c
Convert CRLF to LF
2012-08-13 16:45:35 +02:00
Øyvind Saltvik
4065f7dc40
no complier warnings
2012-08-11 18:17:03 +02:00
Øyvind Saltvik
d9ac1d3638
two less warnings
2012-08-11 18:11:23 +02:00
Øyvind Saltvik
420d33b09d
don't go off the far end
2012-08-11 16:20:23 +02:00
Øyvind Saltvik
5d2a3a3f7c
use tabs
2012-08-10 23:48:42 +02:00
Øyvind Saltvik
d808478ab1
keep track of python function so we can decref it
2012-08-10 23:46:39 +02:00
Øyvind Saltvik
c9588af3c3
make sure errorcodes are returned
2012-08-10 21:41:31 +02:00
Øyvind Saltvik
5cfd91717f
return a datetime on success
2012-08-10 21:00:40 +02:00
Øyvind Saltvik
c5c64435cf
working examples feature complete
2012-08-10 20:37:16 +02:00
Øyvind Saltvik
9073d60858
working with callbacks
2012-08-10 19:25:24 +02:00
Øyvind Saltvik
517c987b6d
PyEval_InitThreads
2012-08-08 13:25:47 +02:00
Øyvind Saltvik
f09ebea266
no semicolon
2012-08-08 13:15:57 +02:00
Øyvind Saltvik
d6fcd4a5dc
tdsensor
2012-08-08 13:12:51 +02:00
Øyvind Saltvik
71e13196f3
add tdUnregisterCallback
2012-08-07 16:08:13 +02:00
Øyvind Saltvik
6496e71026
removed stray spaces
2012-08-07 14:25:13 +02:00
Øyvind Saltvik
384c81d85a
add dev dir to find telldus-core.h file
2012-08-07 13:45:04 +02:00
Øyvind Saltvik
bd766e6254
no .h file
2012-08-07 13:42:07 +02:00
Øyvind Saltvik
a5da11945e
native dir
2012-08-07 13:23:25 +02:00
Øyvind Saltvik
44869cbd4f
tabs/ final newlines
2012-08-07 13:22:20 +02:00
Øyvind Saltvik
cadcf0b48a
comment out code that might not be correct, add memoryerror
2012-08-07 03:30:57 +02:00
Øyvind Saltvik
48efae5a6f
builds on 64 bit with howto
2012-08-07 01:16:51 +02:00
Øyvind Saltvik
241538d107
telldus
2012-08-04 22:16:58 +02:00
Øyvind Saltvik
d1b6208435
four spaces
2012-08-04 22:16:04 +02:00
Øyvind Saltvik
ed3b37439a
example fix
2012-08-04 22:11:50 +02:00
Øyvind Saltvik
7130ad71c9
device
2012-08-04 22:10:58 +02:00
Øyvind Saltvik
cce0c16801
fix example
2012-08-04 22:09:31 +02:00
Øyvind Saltvik
9d11cfb07f
added telldus python bindings
2012-08-04 18:42:00 +02:00
Micke Prag
84330f8518
Print the message before executing them.
2012-06-27 17:21:42 +02:00
Micke Prag
b9d2324552
Implement ping
2012-06-27 17:21:42 +02:00
Micke Prag
6feb0ee2f3
Implement pong
2012-06-27 17:21:41 +02:00
Micke Prag
648b713955
First version of a headless server for Telldus Live!
2012-06-27 17:21:41 +02:00
Micke Prag
83dbd675cf
Add python compiled files to gitignore
2012-06-21 17:21:16 +02:00
Micke Prag
d22793ed12
We cannot iterate over a QHash since the order is by design not guaranteed. Loop using a counter instead
2012-06-21 11:53:11 +02:00