Hi,
it’s possible to send the config.txt file via M2Web API to update the tag list of all my eWon?
the scenario is lithe this:
i have hundred ewon with the same tag configuration (all tag whit logging feature); if tomorrow i want to add a tag to log something new, i need to update manually each ewon.
so i want to write some code to do this automatically.
fantastic!
so via script i can modify all the tag property like via configfile?
for example i can decide to activate the logging property remotely on demand and then switch off?
In the example above, I wrote some endpoints that live on the eWON directly to make it easier however lets say you don’t want to do that and just want to use an API call. To do your logging you could do:
The script below is how you could trigger logging directly on the eWON:
hi jordan,
i’m trying to enable/disable remotely the logging of a tag via a little sw in C# based on m2web library for .NET.
i send this https://m2web.talk2m.com/t2mapi/get/myewon/rcgi.bin/ExecScriptForm?Command1=SETSYS “TAG”, “LOAD”, “mytag”&Command2=SETSYS “TAG”,“LogEnabled”,1&Command4=SETSYS TAG, “SAVE”&command4=cfgsave&t2mdeviceusername=myewonuser&t2mdevicepassword=myewonpass&t2maccount=myaccount&t2musername=myusername&t2mpassword=mypw&t2mdeveloperid=mydevid
but i have a response like this:
“<meta charset=“ISO-8859-1”/>Document Error: Data follows\r\n\t\t
Access Error: Data follows
\r\n\t\twhen trying to obtain <b id=“p”> \r\n\t \r\n\t