Skip to content

Commit b25f3aa

Browse files
committed
Revert "Add hpr_timestamp_ms for gwmp protocol (#313)"
This reverts commit 6ab270e.
1 parent a94eea6 commit b25f3aa

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/protocols/gwmp/hpr_gwmp_worker.erl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,7 @@ packet_up_to_push_data(Up, Timestamp, GatewayLocation) ->
250250
network => <<"helium_iot">>,
251251
gateway_id => B58,
252252
gateway_name => Name,
253-
regi => hpr_packet_up:region(Up),
254-
hpr_timestamp_ms => Timestamp
253+
regi => hpr_packet_up:region(Up)
255254
},
256255
%% NOTE: everything in meta needs to be string -> string.
257256
Meta =

test/hpr_protocol_gwmp_SUITE.erl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -801,8 +801,7 @@ verify_push_data(PacketUp, PushDataBinary) ->
801801
),
802802
<<"regi">> => erlang:atom_to_binary(
803803
hpr_packet_up:region(PacketUp)
804-
),
805-
<<"hpr_timestamp_ms">> => fun erlang:is_integer/1
804+
)
806805
}
807806
}
808807
]
@@ -849,8 +848,7 @@ verify_push_data_with_location(PacketUp, PushDataBinary, IndexString) ->
849848
),
850849
<<"gateway_h3index">> => erlang:list_to_binary(IndexString),
851850
<<"gateway_lat">> => hpr_utils:format_coord(ExpectedLat),
852-
<<"gateway_long">> => hpr_utils:format_coord(ExpectedLong),
853-
<<"hpr_timestamp_ms">> => fun erlang:is_integer/1
851+
<<"gateway_long">> => hpr_utils:format_coord(ExpectedLong)
854852
}
855853
}
856854
]

0 commit comments

Comments
 (0)