The sample code focuses on the usage of each mode and omits irrelevant details. For details, please refer to the demo in the sample code.
| No. | File Name | Description |
| 01 | onehop_demo.c | Showcases the main process of calling the OneHop APIs including obtaining the OneHop Engine version, initializing the OneHop Engine configuration, enabling the OneHop service, stopping the OneHop service, and deinitializing the OneHop configuration. |
To download the sample code, click OneHop Linux Demo.zip.