Debugger
1.CSDevice.createAccessToken
Create token for device debug.
| Param | Value | Desc |
|---|---|---|
| method | CSDevice.createAccessToken | Create token for device debug |
| targetDevice | <String,Necessary> | DeviceId of the device you use |
| token | <String,Necessary> | Net token of the device you use, You can get it here |
| params.scope | <String,Necessary> | Fixed: device/raw_stream |
| params.expire | <int,Necessary> | Token validity period in seconds |
| Param | Value | Desc |
|---|---|---|
| data.access_token.access_token | <String,Necessary> | Access token for device debug |
| data.token_type | <String,Necessary> | Token type |
| data.expires_in | <String,Necessary> | Token expires in |
| data.scope | <String[],Necessary> | Token scope of authorization |
2. Get Lora event stream
get /open/yolink/v2/stream/device_raw_event
Request Header
| Params | Value | Description |
|---|---|---|
| Authorization | Bearer Token <Necessary> | Access Token from step1 |
2. Get Lora frame stream
get /open/yolink/v2/stream/device_raw_frame
Request Header
| Params | Value | Description |
|---|---|---|
| Authorization | Bearer Token <Necessary> | Access Token from step1 |