aboutsummaryrefslogtreecommitdiff
path: root/src/pawsd/tag.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/pawsd/tag.lua')
-rw-r--r--src/pawsd/tag.lua14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/pawsd/tag.lua b/src/pawsd/tag.lua
index f4031f4..b5997b0 100644
--- a/src/pawsd/tag.lua
+++ b/src/pawsd/tag.lua
@@ -22,28 +22,22 @@ function gettagvalue (response, offset)
local valuetypes = gettagtypes(response, offset)
- print("T>--------- Tag (High): " .. valuetypes.high)
- print("T>--------- Tag (Low): " .. valuetypes.low)
-
local valuelength = tonumber(table.extracthex(response, offset + 16, offset + 19), 16)
local valueoffset = offset + 20
local value = ""
- print("\nT>--------- Length: " .. valuelength)
- print("T>--------- Value Offset: " .. valueoffset)
-
if valuelength > 0 then
value = table.extracthex(response, valueoffset, valueoffset + valuelength)
valueoffset = valueoffset + valuelength
- print("\nT>--------- Value (Hex): " .. value)
- print("T>--------- Value (Binary): " .. string.fromhex(value))
-
end
return {
- value = value,
+ tag = {
+ types = valuetypes,
+ value = value
+ },
endoffset = valueoffset
}