This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

MikroTik API Lua library
#7
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:


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;

}
Reply


Messages In This Thread
MikroTik API Lua library - by admin - 20.10.2020, 06:57
RE: MikroTik API Lua library - by FatMax - 20.10.2020, 11:48
RE: MikroTik API Lua library - by admin - 20.10.2020, 12:13
RE: MikroTik API Lua library - by DGrandes - 03.12.2020, 17:45
RE: MikroTik API Lua library - by admin - 04.12.2020, 07:35
RE: MikroTik API Lua library - by DGrandes - 07.12.2020, 13:11
RE: MikroTik API Lua library - by admin - 07.12.2020, 13:49
RE: MikroTik API Lua library - by DGrandes - 07.12.2020, 15:03
RE: MikroTik API Lua library - by admin - 09.12.2020, 07:19
RE: MikroTik API Lua library - by DGrandes - 09.12.2020, 08:09
RE: MikroTik API Lua library - by FatMax - 07.01.2021, 23:20
RE: MikroTik API Lua library - by Igori - 10.01.2021, 15:45
RE: MikroTik API Lua library - by admin - 11.01.2021, 08:07
RE: MikroTik API Lua library - by Igori - 11.01.2021, 19:50
RE: MikroTik API Lua library - by edgars - 26.08.2021, 08:28

Forum Jump: