Understanding Channel Mask

Hi, I’m trying to understand how can I configure the channel mask to use different channel, for example in the docummentation we can Find

/LoraWan channelsmask, default channels 0-7/
uint16_t userChannelsMask[6]={ 0x00FF,0x0000,0x0000,0x0000,0x0000,0x0000 };

And if we change this line for
uint16_t userChannelsMask[6]={ 0xFF00,0x0000,0x0000,0x0000,0x0000,0x0000 };
We are selecting channels 8-15

But What is the logic to select an especific channel for example only channel 8,
or group of channel or channel 34.

0xFF represents eight channels, and 0x01 represents one channel.

2 Likes