libxDot-dev-mbed5 frequency band

Home Forums mDot/xDot libxDot-dev-mbed5 frequency band

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #19769
    Andrew Lindsay
    Participant

    Hi,
    Just trying the latest dev branch and found an issue, existing code using the getFrequencyBand() function and the FrequencyBands enumerations no longer work.

    In mdot.h the following is no longer present:

            enum FrequencyBands {
                FB_868 = 0,
                FB_915 = 1,
                FB_EU868 = 0, // EU868
                FB_US915 = 1,  // US915
                FB_AU915 = 2
            };

    This wouldnt be an issue if my applications were in one band only, however this is not the case and the code needs to know which band the xDot is using.

    Is this something to do with the changes to add channel plans? If so, what is the best way to determine the frequency band of the xDot?

    thanks

    Andrew

    #19770
    Mike Fiore
    Blocked

    Andrew,

    You’re right, this is an issue because of the channel plan changes.

    ChannelPlan.h has a new enum for channel plan definitions, including *_OLD versions that match the FB_* definitions. But the name is still different, so that’s not very helpful. This was an oversight on my part. Sorry about that.

    I’ll add all the old enum names to this as well so everything is backwards compatible. That change should be in the next dev release and will make it into the production builds as well.

    Cheers,
    Mike

    #19778
    Andrew Lindsay
    Participant

    Thanks Mike, they are in the ChannelPlan.h file now so I’ve still got to make changes to use them.

    Andrew

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.