From a3362946173b3b1caa69071fb861d7eab0af004e Mon Sep 17 00:00:00 2001 From: peter-pycom <61411318+peter-pycom@users.noreply.github.com> Date: Mon, 16 Mar 2020 15:09:23 +0100 Subject: [PATCH] Sigfox: print received message --- content/firmwareapi/pycom/network/sigfox.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/firmwareapi/pycom/network/sigfox.md b/content/firmwareapi/pycom/network/sigfox.md index a89955d1..2094f5dc 100644 --- a/content/firmwareapi/pycom/network/sigfox.md +++ b/content/firmwareapi/pycom/network/sigfox.md @@ -252,7 +252,8 @@ s.setsockopt(socket.SOL_SIGFOX, socket.SO_RX, True) s.send(bytes([1, 2, 3])) # await DOWNLINK message -s.recv(32) +r = s.recv(32) +print(ubinascii.hexlify(r)) ``` ## Sigfox FSK (Device to Device)