Skip to content

Method GetGreetingAsync ​

Namespace: Belay.Core.Examples
Assembly: Belay.Core.dll

GetGreetingAsync() ​

Gets a simple greeting from the device. Demonstrates basic [Task] and [PythonCode] attribute usage.

csharp
[Task]
[PythonCode("'Hello from MicroPython device!'")]
Task<string> GetGreetingAsync()

Returns ​

Task<string>

A greeting message from the MicroPython device.

Released under the Apache License 2.0.