diff options
author | Anton Tananaev <anton@traccar.org> | 2023-11-18 07:36:33 -0800 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-11-18 07:36:33 -0800 |
commit | a9029f335cd8a6493ee6b817e659e690bf0af614 (patch) | |
tree | 8f7bbc84510dcc8c62f7e72c603aa9b8e5816313 /src/test/java/org/traccar | |
parent | 2d584e225ac56de1432a15243f981e294215fd10 (diff) | |
download | trackermap-server-a9029f335cd8a6493ee6b817e659e690bf0af614.tar.gz trackermap-server-a9029f335cd8a6493ee6b817e659e690bf0af614.tar.bz2 trackermap-server-a9029f335cd8a6493ee6b817e659e690bf0af614.zip |
Support GL521M light sensor
Diffstat (limited to 'src/test/java/org/traccar')
-rw-r--r-- | src/test/java/org/traccar/protocol/Gl200TextProtocolDecoderTest.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/Gl200TextProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/Gl200TextProtocolDecoderTest.java index a23b87fe5..0a0d27e3e 100644 --- a/src/test/java/org/traccar/protocol/Gl200TextProtocolDecoderTest.java +++ b/src/test/java/org/traccar/protocol/Gl200TextProtocolDecoderTest.java @@ -12,6 +12,10 @@ public class Gl200TextProtocolDecoderTest extends ProtocolTest { var decoder = inject(new Gl200TextProtocolDecoder(null)); verifyAttribute(decoder, buffer( + "+RESP:GTLSA,C50204,866356062524268,,1,0,1,0,0.0,0,123.3,4.730544,51.620446,20231116021001,0204,0008,0D0C,309C,18,1,7,96,0,,,20231116080602,0040$"), + "lightLevel", 7); + + verifyAttribute(decoder, buffer( "+RESP:GTFRI,423037,866884047716519,GT501,0,1,1,5,12,0.1,0,46.8,-95.559173,30.109955,20231110185836,6,0e36c9916485,-50,,,,e831cd5eb79d,-73,,,,ccf4110c4bd5,-79,,,,acdb48973168,-79,,,,80ab4dc323c4,-82,,,,ec8eb5cfa1c6,-89,,,,310,10,711D,81ECF0F,00,,93,20231110185839,0005$"), Position.KEY_BATTERY_LEVEL, 93); |