Added logo, added Boot screen, renamed dump_config packet to upload_config, misc changes and UX improvements

This commit is contained in:
2020-06-08 16:08:41 -05:00
parent ef0174fb06
commit f04dfb01e7
13 changed files with 124 additions and 42 deletions

View File

@@ -1,26 +1,27 @@
module TAC
class TACNET
class Packet
PROTOCOL_VERSION = 0
PROTOCOL_VERSION = 1
PROTOCOL_HEADER_SEPERATOR = "|"
PROTOCOL_HEARTBEAT = "heartbeat"
PACKET_TYPES = {
handshake: 0,
heartbeat: 1,
dump_config: 2,
download_config: 2,
upload_config: 3,
add_group: 3,
update_group: 4,
delete_group: 5,
add_group: 20,
update_group: 21,
delete_group: 22,
add_action: 6,
update_action: 7,
delete_action: 8,
add_action: 30,
update_action: 31,
delete_action: 32,
add_variable: 9,
update_variable: 10,
delete_variable: 11,
add_variable: 40,
update_variable: 41,
delete_variable: 42,
}
def self.from_stream(message)