From 1e2c52110152644059774905f6ff05a9c38ae9a3 Mon Sep 17 00:00:00 2001 From: peter-pycom <61411318+peter-pycom@users.noreply.github.com> Date: Thu, 23 Sep 2021 16:18:12 +0200 Subject: [PATCH] ttn: fix gateway eui fix buffer protocol error and remove wrong indentation for easy copy/paste --- content/gettingstarted/registration/lora/ttn.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/content/gettingstarted/registration/lora/ttn.md b/content/gettingstarted/registration/lora/ttn.md index 9837290..24b9e42 100644 --- a/content/gettingstarted/registration/lora/ttn.md +++ b/content/gettingstarted/registration/lora/ttn.md @@ -70,11 +70,11 @@ Inside the TTS Console, there are two options, `Applications` and `Gateways`. Se Here, it is important we add the `Gateway ID` and `Gateway EUI`. The first can be an identifying string of characters unique to the gateway. The latter is what we'll use in the gateway configuration on the device, and exists of 16 hexadecimal characters. You can use the following to generate the `Gateway EUI`: ```python - from network import WLAN - import binascii - wl = WLAN() - binascii.hexlify(wl.mac())[:6] + 'FFFE' + binascii.hexlify(wl.mac())[6:] - ``` +from network import WLAN +import binascii +wl = WLAN() +binascii.hexlify(wl.mac().sta_mac)[:6] + 'fffe' + binascii.hexlify(wl.mac().sta_mac)[6:] +``` These are unique to each gateway, location and country specific frequency. Please verify that correct settings are selected otherwise the gateway will not connect to TTN. Further down the page, you will have to select a frequency plan. Select the one appropriate for your region and/or the one compatible with your nodes. After that, you can create the gateway.