Skip to content

Commit

Permalink
convert received payload from hex to text
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex committed Dec 7, 2015
1 parent c5e48fd commit 3875af8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion receive_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def on_rx_done(self):
# self.get_payload_length
self.set_payload_length(8)
self.get_rx_nb_bytes
print(map(hex, self.read_payload(nocheck=True)))
print(''.join(map(hex, self.read_payload(nocheck=True))).replace('0x', '').decode("hex"))
self.set_mode(MODE.SLEEP)
self.reset_ptr_rx()
BOARD.led_off()
Expand Down
Empty file modified test_lora.py
100755 → 100644
Empty file.

0 comments on commit 3875af8

Please sign in to comment.