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.

copas connecting to tcp server cannot receive percentage
#5
Hi,

So I changed the copas.addthread function.


Code:
 copas.addthread(function()
     while true do
      local resp,err = copas.receive(skt,'*l')
       if not resp then
         alert("Jandy Receive error: ", err)
         copas.removeserver(skt)
         skt = nil          
         break
       end
       parse(resp)
     end
   end)




Now when I send % I see in the alerts
there was an error/usr/share/lua/genohm-scada.lua:0: bad argument #2 to 'format' (no value)

Any ideas?

Thanks,


Roger
Reply


Messages In This Thread
RE: copas connecting to tcp server cannot receive percentage - by rocfusion - 14.06.2017, 09:48

Forum Jump: