Install and Use SDK

WARNING

Available for version 3.1.8 and above

Lua

WARNING

Only supports Lua 5.4 and above

The web frontend scene code editor has a built-in lebai_sdk and has initialized the local instance to the variable name lebai, which can be used directly.

If you need to use the Lua SDK in an external controller, you can download it from Githubopen in new window and extract it to any folder listed in package.cpath.

Usage examples see Reference Examples

Python

WARNING

Only supports Python 3.7 and above

  • If using the standard calling method, install lebai-sdk:

    pip uninstall lebai-sdk-asyncio
    pip install lebai-sdk --force-reinstall
    
  • If using the asynchronous coroutine calling method, i.e., AsyncIO and async/await, install lebai-sdk-asyncio:

    pip uninstall lebai-sdk
    pip install lebai-sdk-asyncio --force-reinstall
    
  • Download the whl file from Githubopen in new window and install with pip install

Usage examples see Reference Examples

JavaScript

JavaScript support based on wasm technology

  • If using bundler development, you can install directly via npm:

    npm install lebai-sdk
    
  • If using NodeJs or web development, you can download from Githubopen in new window.

Usage examples see Reference Examples

Rust

cargo add lebai_sdk --features mdns

C++

Use the project source code from GitHubopen in new window

Usage examples see GitHubopen in new window

C#

dotnet add package lebai

Usage examples see GitHubopen in new window

Java

Download and use from Githubopen in new window

Usage examples see GitHubopen in new window