Reply to thread

At this point in the code, we could compare signal strength


I'd need to do something like below.


[CODE=csharp]

            if (currentDetail == null)

            {

              //add new channel

              exists = false;

              dbChannel = layer.AddNewChannel(channel.Name, channel.LogicalChannelNumber);

              dbChannel.SortOrder = 10000;

              if (channel.LogicalChannelNumber >= 1)

              {

                dbChannel.SortOrder = channel.LogicalChannelNumber;

              }

              dbChannel.IsTv = channel.IsTv;

              dbChannel.IsRadio = channel.IsRadio;

              dbChannel.Persist();

            }

            else

            {

              exists = true;

              //dbChannel = currentDetail.ReferencedChannel();

              if (signalStrength > dbChannel.signalStrength) // psuedo code

              {

                // add stronger channel // psuedo code

              }

            }[/CODE]


I am not sure where to get the signal strength for use at this point ?


curTuning.BandWidth ?


Top Bottom