1

getting error 7 when registry fuel filling

Тема: getting error 7 when registry fuel filling

Hi,
I'm trying to use this function i found in API documentation

myUnit.registryFuelFillingEvent(date, description, x, y, location, volume, cost, deviation, function (code) {
                if (code) {
                    msg("erreur : " + wialon.core.Errors.getErrorText(code));
                } else {
                    msg("enregistrement terminé")
                }
            });

but i always get error code 7.
I don't understand cause the account i'm trying with has full access.
Thanks for your help

2

getting error 7 when registry fuel filling

Re: getting error 7 when registry fuel filling

janus, your user should have access right Register events 0x0002000000 (33554432) to unit.
Also your token should be created with access_type at least 0x500.

Head of Wialon Local Department
Gurtam
3

getting error 7 when registry fuel filling

Re: getting error 7 when registry fuel filling

Thank you deal , but i'm sorry, i'm new here. how can i do this?

4

getting error 7 when registry fuel filling

Re: getting error 7 when registry fuel filling

janus, provide please in private message your user, unit, token to check access rights.

Head of Wialon Local Department
Gurtam
5

getting error 7 when registry fuel filling

Re: getting error 7 when registry fuel filling

Hello,

I have same problem. Janus, how did you resolve this issue?