Can a Windows C# app receive Leafony BLE data?

Use this page with AI

Explore with your favorite AI

Gemini & other AI

Copy this page’s context into your AI to explore how it works and what you can build.

Open Gemini

Copy the prompt, then paste it into Gemini’s message box.

View prompt

Yes. If your configuration runs a BLE sample that uses GATT communication, you can build a receiver using Windows BLE APIs. Match the PC receiver to the program running on Leafony.

Start with the AVR Web Bluetooth sample or STM32 sample and its receiver code.

  1. Identify the leaves and the program running on them.
  2. Check service and characteristic UUIDs and how Read, Write, and Notify are used.
  3. Discover the service on Windows and implement the appropriate operations, such as subscribing to notifications.
  4. Interpret the received bytes using the same format as the sample.

Microsoft’s GATT client guide includes C# examples for service discovery and notifications. A device name alone does not explain its data, so also check the BLE data format.

Also check support for your Windows SDK, app type, adapter, and driver. A beacon-only sample behaves differently from connection-based GATT communication.

Historical question consulted: “leafonyの開発環境について教えてください” by ike (April 15, 2024, Japanese). Operation with the post’s combination of Windows 10, Visual Studio 2017, and a particular BLE dongle, and the resolution of that request, are unconfirmed. This answer does not recommend that older environment; it describes how to build a receiver using current official documentation.

Leaf photo
Search documentation, sample apps, and Q&A