Thanks so much!! It works
I have another problem with api:
I´ve created an script in Mikrotik that works when I execute it directly from Mikrotik but if I execute it from LM Api, it runs but only the first line:
I have another problem with api:
I´ve created an script in Mikrotik that works when I execute it directly from Mikrotik but if I execute it from LM Api, it runs but only the first line:
Code:
{
/tool fetch url="http://remote:AAaa1111@192.168.2.205/scada-remote" http-data="m=json&r=grp&fn=write&alias=38/6/100&value=true" http-method=post as-value output=user;
:delay 5
/tool fetch url="http://remote:AAaa1111@192.168.2.205/scada-remote" http-data="m=json&r=grp&fn=write&alias=38/6/100&value=false" http-method=post as-value output=user;
:delay 5
/tool fetch url="http://remote:AAaa1111@192.168.2.205/scada-remote" http-data="m=json&r=grp&fn=write&alias=38/6/100&value=true" http-method=post as-value output=user;
}