You might have trouble connecting your Mbed OS device to The Things Network if you're in the US. The reason is that there are 72 channels available in the US, but your gateway is only listening to 8 channels. You can limit the channels that the Mbed OS LoRaWAN stack is using by setting the fsb-mask
option. TTN is using FSB 1.
In your Mbed OS project, open mbed_app.json
and add under target_overrides
:
"lora.phy": "US915",
"lora.fsb-mask": "{0xFF00, 0x0000, 0x0000, 0x0000, 0x0002}",
And re-compile.
More information in FSB_Usage.txt in the Mbed OS repository.