diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-03-07 16:42:14 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-07 16:42:14 +1300 |
commit | 54867872a7e227742418037ce01da675587cd92b (patch) | |
tree | d85a3b1360d76223b64488575394517f7111ab13 /src/org/traccar/protocol/GranitProtocol.java | |
parent | dc79a5ce6d9776db30d357dfb16dff624db770dd (diff) | |
parent | 679f838e8bd0caaea94b1d4d1cd9b740ea3b9606 (diff) | |
download | trackermap-server-54867872a7e227742418037ce01da675587cd92b.tar.gz trackermap-server-54867872a7e227742418037ce01da675587cd92b.tar.bz2 trackermap-server-54867872a7e227742418037ce01da675587cd92b.zip |
Merge pull request #2982 from Abyss777/rename_data_and_text
Introduce terms "data" and "text" commands
Diffstat (limited to 'src/org/traccar/protocol/GranitProtocol.java')
-rw-r--r-- | src/org/traccar/protocol/GranitProtocol.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/GranitProtocol.java b/src/org/traccar/protocol/GranitProtocol.java index 1ae42ba46..32e8e00b0 100644 --- a/src/org/traccar/protocol/GranitProtocol.java +++ b/src/org/traccar/protocol/GranitProtocol.java @@ -29,12 +29,12 @@ public class GranitProtocol extends BaseProtocol { public GranitProtocol() { super("granit"); - setSupportedCommands( + setSupportedDataCommands( Command.TYPE_IDENTIFICATION, Command.TYPE_REBOOT_DEVICE, Command.TYPE_POSITION_SINGLE); - setSmsEncoder(new GranitProtocolSmsEncoder()); - setSupportedSmsCommands( + setTextCommandEncoder(new GranitProtocolSmsEncoder()); + setSupportedTextCommands( Command.TYPE_REBOOT_DEVICE, Command.TYPE_POSITION_PERIODIC); } |