Skip to content

Instantly share code, notes, and snippets.

@dorny
dorny / Program.cs
Last active September 11, 2020 10:52
Reproduces bug in STAN.NET Client - https://github.com/nats-io/stan.net/issues/184
using System;
using System.Threading.Tasks;
using NATS.Client;
using STAN.Client;
namespace StanNetBug
{
class Program
{
static async Task Main(string[] args)
blueprint:
name: ZHA - Moes Smart Knob for lights
description: 'Control lights with a Moes Smart Knob.
You can set functions for a single press. This allows you to assign,
e.g., a scene or anything else.
Rotating left/right will change the brightness smoothly of the selected light.
Not all functionality of the device is available at time of writing, e.g. double press, long press and press and rotate.'