/DCS-BIOS-Communicator

A package for communicating with DCS-BIOS in .net 6.

Primary LanguageC#GNU General Public License v3.0GPL-3.0

DCS BIOS Communicator

Nuget .NET 5 CI build GitHub Discord

DCS BIOS Communicator is a .net 5 library for interacting with DCS-BIOS. It parses the raw data bytes provided by DCS-BIOS and will trigger actions when it receives data.

DCS BIOS Communicator logo - a vector outline of an airplane

Features

  • Parses data from DCS-BIOS
  • Handles pesky UTF-8 symbols
  • Might buy you an ice cream sandwich if you're lucky
  • Cross platform

Usage/Examples

// create a new UDP client for talking to DCS-BIOS
var client = new BiosUdpClient(IPAddress.Parse("239.255.50.10"), 7778, 5010, logger);
client.OpenConnection();

// create your own translator class which implements IBiosTranslator
var biosListener = new BiosListener(client, translator, logger);

// register the json configuration files
var configLocation = "%userprofile%/Saved Games/DCS.openbeta/Scripts/DCS-BIOS/doc/json/";
foreach (var config in await AircraftBiosConfiguration.AllConfigurations(configLocation))
{
    biosListener.RegisterConfiguration(config);
}

// start the listener
biosListener.Start();

Roadmap

  • Unit tests

Acknowledgements