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.

For Version 6.3 and newer.

Refer to API documentation example: 
"How to: Load objects (radios, beacons, map objects, etc.) and receive events from Server."
Online and Offline statuses updates through same example. "Device" class property is "IsActive".


Note!
The information below is relevant to versions Before 6.3

 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?