04.01.2024, 09:56 
		
	
	
		Hi!
I have a problem sending strings to influxdb
How can I send 250bytes or 14bytes strings?
I've tried with
but doesn´t work. This is the error:
	
	
	
	
I have a problem sending strings to influxdb
How can I send 250bytes or 14bytes strings?
I've tried with
Code:
local function escape(value)
  return tostring(value):gsub('[\\ ,=]', '\\%1')
end
if type(value) == 'string' then
    body = string.format('%s,name=%s,addr=%s string=%s', influxtable, name, addr, escape(value))
end
if type(value) == 'string' then
    body = string.format('%s,name=%s,addr=%s string=%s', influxtable, name, addr, value)
endbut doesn´t work. This is the error:
Code:
  * string: {"code":"invalid","message":"unable to parse 'DatosLM,name=PruebaString,addr=32/1/4 value=Probando\\ String': invalid boolean"}