Skip to content

Method GetDeviceInfoAsync

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

GetDeviceInfoAsync()

Gets device information without parameter substitution. Demonstrates disabling parameter substitution.

csharp
[Task]
[PythonCode("\n        import sys\n        import gc\n        info = f'Platform: {sys.platform}, Memory: {gc.mem_free()} bytes'\n        info\n    ", EnableParameterSubstitution = false)]
Task<string> GetDeviceInfoAsync()

Returns

Task<string>

Device information string.

Released under the Apache License 2.0.