Skip to content

Commit

Permalink
base64 downlink payload in console events (#982)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldjeffrey authored Jul 26, 2023
1 parent 0755d2a commit 8b9f52b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/router_utils.erl
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ event_downlink_dropped_payload_size_exceeded(Desc, Port, Payload, Device, Channe
reported_at => erlang:system_time(millisecond),
fcnt => router_device:fcntdown(Device),
payload_size => erlang:byte_size(Payload),
payload => Payload,
payload => base64:encode(Payload),
port => Port,
devaddr => lorawan_utils:binary_to_hex(router_device:devaddr(Device)),
hotspot => #{},
Expand Down Expand Up @@ -425,7 +425,7 @@ event_downlink_dropped_misc(Desc, Port, Payload, Device, ChannelMap) ->
reported_at => erlang:system_time(millisecond),
fcnt => router_device:fcntdown(Device),
payload_size => erlang:byte_size(Payload),
payload => Payload,
payload => base64:encode(Payload),
port => Port,
devaddr => lorawan_utils:binary_to_hex(router_device:devaddr(Device)),
hotspot => #{},
Expand All @@ -451,7 +451,7 @@ event_downlink_queued(Desc, Port, Payload, Device, ChannelMap) ->
reported_at => erlang:system_time(millisecond),
fcnt => router_device:fcntdown(Device),
payload_size => erlang:byte_size(Payload),
payload => Payload,
payload => base64:encode(Payload),
port => Port,
devaddr => lorawan_utils:binary_to_hex(router_device:devaddr(Device)),
hotspot => #{},
Expand Down

0 comments on commit 8b9f52b

Please sign in to comment.