IN THIS ARTICLE

How do I transfer Radios state information from TRBOnet to another software?

Incorrect email!

The article was successfully sent to the email

Use TRBOnet API
Note!
Before performing this step, make sure that TRBOnet API is the same version as TRBOnet application you are running.

 TRBOnet site contains API for current Release version, if you are running another build of TRBOnet, contact support@trbonet.com and specify exact TRBOnet build version you are running.

Get new radio state
The example shows how you get a new radio state from server.

C#
Copyclient.DeviceStateChanged += new EventHandler<Objects.Event_args.DeviceStateChangedEventArgs>(client_DeviceStateChanged);
//...
//...
void client_DeviceStateChanged(object sender, Objects.Event_args.DeviceStateChangedEventArgs e)
{
    Device device = m_devices.Find((d) => d.ID == e.DeviceId);
    if (device != null)
    {
        device.BeginUpdate();
        try
        {
            device.DeviceState = e.State;
            device.ActiveMasterId = e.ActiveMasterId;
        }
        finally
        {
            device.EndUpdate();
        }
    }
}

Helpful?
We're glad this article helped.

Thanks for letting us know. What went wrong?