Can a Windows C# app receive Leafony BLE data?
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.
- Identify the leaves and the program running on them.
- Check service and characteristic UUIDs and how Read, Write, and Notify are used.
- Discover the service on Windows and implement the appropriate operations, such as subscribing to notifications.
- 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). This answer does not recommend that older environment; it describes how to build a receiver using current official documentation.
