Commit Graph

35 Commits

Author SHA1 Message Date
Andrius Štikonas a9e76830c1 Let Qt handle object deletion. 2016-09-02 20:56:06 +01:00
Andrius Štikonas 7278cba9c0
Show if Daylight Saving Time is enabled. 2016-04-17 23:03:36 +01:00
Andrius Štikonas 99b2ed9d58
Rename dhcpMode to DST_TimezoneOffset.
Describtion by Fernando Silva:
While most TZs are integer, there are half time zones: Venezuela/Caracas, for
example, is GMT -4.5 and Kabul GMT +4.5. It is awkward, but we found that these
"half time zones" are identified by the second least significant bit of byte 161
(yes, the same used for DST). Therefore, we have the following possible combinations
for byte 161:
- 00: integer TZ, DST on
- 01: integer TZ, DST off
- 02: half TZ, DST on
- 03: half TZ, DST off

As a reference, one may consider the following examples:
- Azores (GMT-1), DST on:	byte 161 = 00, byte 164 = FF
- Caracas (GMT-4.5), DST off:   byte 161 = 03, byte 164 = FC
- Paris (GMT+1), DST off:       byte 161 = 01, byte 164 = 01
- Kabul (GMT+4.5), DST on:      bute 161 = 02, byte 164 = 04
2016-04-12 12:36:57 +01:00
Andrius Štikonas f1cdc8260e Rename Countdown->Off timer
There are two types of countdowns supported by S20.
The one currently implemented automatically switches socket off
on a specified delay after switch on.
2015-11-16 01:15:19 +00:00
Andrius Štikonas 4acb55c2e6 Output timezone as a decimal number. 2015-11-01 22:25:23 +00:00
Andrius Štikonas bc4c6cfcaa Add a function to convert hexadecimal QByteArrays to integers. 2015-11-01 15:40:48 +00:00
Andrius Štikonas c4d9ddb602 Add a function to convert integers to hexadecimals in QByteArray. 2015-11-01 03:56:05 +00:00
Andrius Štikonas 019fa723c1 Fix broken countdown support. 2015-11-01 00:31:38 +00:00
Andrius Štikonas 1246e6d1db Implement toggling countdown state. 2015-09-04 22:49:13 +01:00
Andrius Štikonas 482a2a0e5b Reformat with astyle. 2015-08-18 15:29:09 +01:00
Andrius Štikonas 4497d1e1c1 Add partial support for countdown. 2015-08-18 14:25:32 +01:00
Andrius Štikonas 32cf746ace Rename some commandID enums to be closer their ASCII value
GlobalDiscover -> QueryAll
TableData      -> ReadTable
WriteTableData -> TableModify
2015-05-27 00:03:33 +01:00
Andrius Štikonas de16fea254 Restore ability to set a different ssid.
Add on and off commands.
2015-05-26 00:02:19 +01:00
Andrius Štikonas df5cc31355 Do not emit stateChanged when receiving discover (too verbose). 2015-04-02 22:56:57 +01:00
Andrius Štikonas b30da3495d Process Discover packets too. 2015-04-02 22:10:06 +01:00
Andrius Štikonas 354ec34d1e Move socketDateTime to socket class. 2015-04-02 01:31:37 +01:00
Andrius Štikonas 8999a55c30 Add another method of pairing. 2015-03-11 12:34:56 +00:00
Andrius Štikonas c7c93181bf Add support for initial pairing of the socket (WIP, some manual steps necessary). 2015-02-22 23:20:20 +00:00
Andrius Štikonas e7c521bc10 Print countdown. 2015-02-21 21:14:22 +00:00
Andrius Štikonas e231388e95 Parse domain server name. 2015-02-15 15:26:37 +00:00
Andrius Štikonas 802f910809 Password changing and displaying of the timezone. 2015-02-15 12:31:21 +00:00
Andrius Štikonas 1f16785dd8 Remove more magic numbers from WriteSocketData. 2015-02-11 14:31:20 +00:00
Andrius Štikonas 033b49e365 Do not send wrong data in WriteSocketData datagram. 2015-02-11 00:33:04 +00:00
Andrius Štikonas f2037b01ef Parse more stuff in SocketData messages. 2015-02-09 21:09:50 +00:00
Andrius Štikonas 8acd7a7178 Remove debugging output. 2015-02-07 20:04:33 +00:00
Andrius Štikonas b64663177e Implement command queue. 2015-02-07 17:29:12 +00:00
Andrius Štikonas daf7213a05 Move network and input handling to separate threads.
Add some debugging output.
2015-02-03 01:24:47 +00:00
Andrius Štikonas 5e035a4448 Make UDP datagrams asynchronous. 2015-02-01 01:42:45 +00:00
Andrius Štikonas 748ad8cb91 Move input handling to another thread and enable event loop. 2015-01-31 18:12:20 +00:00
Andrius Štikonas 06aeb187d5 Start implementing support for changing the socket name and password. 2015-01-31 15:28:34 +00:00
Andrius Štikonas e17074384a Read socket name and remote password. 2015-01-26 00:55:20 +00:00
Andrius Štikonas bdba0234b2 Parse received datagrams. 2015-01-25 19:39:15 +00:00
Andrius Štikonas 9e327cee32 Improve output. 2015-01-15 19:38:25 +00:00
Andrius Štikonas 17a2b1325b Implement basic toggling support. 2015-01-14 13:55:28 +00:00
Andrius Štikonas dc98486dc7 Refactor Socket class to store information about individual sockets. 2015-01-14 00:50:55 +00:00