Skip to content

Instantly share code, notes, and snippets.

View gralin's full-sized avatar

Jakub Bartkowiak gralin

  • Ela-compil sp. z o. o.
  • Poznań, Poland
  • X @gralinpl
View GitHub Profile
@gralin
gralin / Program.cs
Created June 28, 2023 06:59
Read property from remote BACnet device
var client = new BacnetClient();
client.Start();
var properties = await client.ReadPropertyAsync(
new BacnetAddress(BacnetAddressTypes.IP, "192.168.1.1"),
new BacnetObjectId(BacnetObjectTypes.OBJECT_DEVICE, 1234),
BacnetPropertyIds.PROP_DESCRIPTION);
Console.WriteLine($"Device description: {properties.First().Value}");
@gralin
gralin / Proxy.cs
Created April 25, 2016 19:34
Gerrit proxy for IIS
using System;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace GerritProxy