1

"No units found" with Commands example from Playground

Тема: "No units found" with Commands example from Playground

I've been working with Playground examples. Most of them work well by just changing token, except, in my case, the "Commands" example.

While I've been able to get a list of units with their sensors using "Get sensors" example, with "Commands" is another history.

"Commands" example does well with the sample token, but after changing it with my own token and pressing the Run button I get this:

No units found
Logged successfully

What I am missing here?.

I hope you guys can help me to see what I'm doing wrong. Thanks in advance.

2

"No units found" with Commands example from Playground

Re: "No units found" with Commands example from Playground

Hello!

The example "Commands" considers to create a new command, edit and execute a command for unit, for this it needs required access rights to units, and token rights, if you don't have it, the list of units will be empty.
So please check if you have access rights to unit - https://help.wialon.com/help/wialon-hos … cessrights
And token access - you need to generate token ( parameter access_type ) with full access or at least 16101 value (sum up of all required flags)
https://sdk.wialon.com/wiki/en/sidebar/ … rmat/token
For example, https://hosting.wialon.com/login.html?access_type=-1

Diana Cheley
Wialon Hosting Expert
Gurtam
3

"No units found" with Commands example from Playground

Re: "No units found" with Commands example from Playground

Thanks a lot, Diana.

It was the parameter access_type of my token. It's solved now.