How to change spreading factor and bandwidth for ExpLoRaBLE

I’ve used the example sketch LoRaWAN_node_ABP_method.ino with a Sparkfun ExpLoRaBLE to create a LoRa node. I’ve registered this device with TTN and see data being uploaded through my gateway. In the TTN console it looks like my board is using a spreading factor of 7 and bandwidth of 125khz.

settings": {

“data_rate”: {

“lora”: {

“bandwidth”: 125000,

“spreading_factor”: 7,

“coding_rate”: “4/5”

}

},

“frequency”: “904500000”,

“timestamp”: 3415167747

},

I’d like to see if a SF of 12 and bandwidth of 500khz increases transmission range.

Does anyone know how to configure those parameters?

See here (~line 65) https://github.com/jgromes/RadioLib/blo … ttings.ino

Thanks for the reply, Russell. I’m unclear on how to use this RadioLib example. Does my sketch need to include this code and run through that at setup() or do I run the example sketch once to update the radio settings and then re-upload my TTN sketch I’ve already been using?

Thanks.